I am trying to send mail using CDO.
The line below ("objMessage.Se nd") blows with this error:
-21472200960 "Send Using" configuration is invalid"
Here is the link where I got this code:
At this link the Dim for objMessage was not listed, so, not knowing how
to declare it, I declared it as a straight object.
Here's the code:
<begin code>
Dim objMessage As Object
Set objMessage = CreateObject("C DO.Message")
objMessage.Subj ect = "Example CDO Message"
objMessage.From = "MiscAddress@My Company.com"
objMessage.To = "FromTheDept@My Domain.com"
objMessage.Text Body = "Test message sent at " & Format(Date,
"MMDDYYYY") & "-" & Format(Time, "HHMMSS")
objMessage.Send
<end code>
Under Tools/References" I have "Microsoft CDO for Windows 2000" checked,
as it references C:\Windows\Syst em32\CDOSys.DLL
What am I doing wrong here?
*** Sent via Developersdex http://www.developersdex.com ***
Comment