CDOS from Acccess

S

SHIPP

I am using the following code to attempt to send an email message.

Set MailObj = CreateObject("CDO.Message")
MailObj.To = "(e-mail address removed)"
MailObj.From = "(e-mail address removed)"
MailObj.Subject = "Test message"
Text = "Thank you for your submission." & Chr(13) & Chr(10)
Text = Text & "Your request is being processed." & Chr(13) & Chr(10)
Text = Text & "Please allow 48 hours for a response."
MailObj.TextBody = Text
MailObj.Send
Set MailObj = Nothing


It errors out on the MailObj.Send line. The error is....

the SendUsing Configuration value is invalid.


Any help is greatly appreciated. Thank you.
 
K

Ken Warthen

Shipp,

You might want to try using

DoCmd.SendObject

As long as you're not using any attachments it will probably meet your
needs. If you use Outlook as your email client you can create more
sophisticated emailing from within Access.

Ken Warthen
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top