Error message sending Email via CDO

S

SHIPP

I got the following code from Paul Sadowski's web page.


Dim objMessage as object

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = Me.Subject
objMessage.From = "(e-mail address removed)"
objMessage.To = strTo
objMessage.TextBody = strEMsg
objMessage.AddAttachment "c:\temp\readme.txt"
objMessage.Send

When I run it I get the following error:

The "Send Using" configuration value is invalid.

at the following line of code.

objMessage.Send

Any help would be appreciated. I am using
Access 2003. The reason I need to go in this
direction is because I need to send an attachment
through an email program other than Outlook.
Thanks in advance for your help.
 

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

Similar Threads


Top