Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > Sending Email w...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 30144 of 31576
Post > Topic >>

Sending Email with CDO Object

by RLN <nospamrln@[EMAIL PROTECTED] > May 1, 2008 at 02:17 PM

I am trying to send mail using CDO.
The line below ("objMessage.Send") blows with this error:
-21472200960 "Send Using" configuration is invalid"

Here is the link where I got this code:
http://www.paulsadowski.com/WSH/cdo.htm#LoadFromFile
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("CDO.Message")
    objMessage.Subject = "Example CDO Message"
    objMessage.From = "MiscAddress@[EMAIL PROTECTED]
"
    objMessage.To = "FromTheDept@[EMAIL PROTECTED]
"
    objMessage.TextBody = "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\System32\CDOSys.DLL

What am I doing wrong here?







*** Sent via Developersdex http://www.developersdex.com
***
 




 2 Posts in Topic:
Sending Email with CDO Object
RLN <nospamrln@[EMAIL   2008-05-01 14:17:44 
Re: Sending Email with CDO Object
lyle fairfield <lyle.f  2008-05-01 12:25:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 1:31:00 CST 2008.