Error message sending Email via CDO

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
Back
Top