Some weeks ago, I asked if anyone knows how to send e-mail using VBA regardless of the MAPI client (Outlook, Outlook Express, etc.). The reply I got give me an error. Does anyone know how to make this work?
The following code:
Dim strAttachmentPath As String
Dim iMsg, arrEmail
Set iMsg = CreateObject("CDO.Message"
With iMsg
.To = "kimmedlin@yahoo.com"
.From = "youremail@whereever.com"
.Subject = "Subject line"
.TextBody = "See attached docs for more info."
.AddAttachment strAttachmentPath
.send
End With
Gave me the following error:
Run-time error '-2147220960 (80040220)':
The "SendUsing" configuration value is invalid.
The .send line of code was highlighted.
Any ideas anyone?
The following code:
Dim strAttachmentPath As String
Dim iMsg, arrEmail
Set iMsg = CreateObject("CDO.Message"
With iMsg
.To = "kimmedlin@yahoo.com"
.From = "youremail@whereever.com"
.Subject = "Subject line"
.TextBody = "See attached docs for more info."
.AddAttachment strAttachmentPath
.send
End With
Gave me the following error:
Run-time error '-2147220960 (80040220)':
The "SendUsing" configuration value is invalid.
The .send line of code was highlighted.
Any ideas anyone?