Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDONTS Error when sending mail

Status
Not open for further replies.

Nevermore

Programmer
Sep 24, 2001
5
US
I have Cdonts loaded with the dll and everything, but now I get an error that objmail.to is unsupported in cdonts. Any ideas? or any other way to set the to address on it? I appreciate the assistance, sorry for all the questions, CDONTS is new to me :eek:).

Jonathan Sullivan
 
I made my own accident on the to form. Now i recieve the error that the path canoot be found. I get the error when it tries to run the objmail.send I have objmail fields of to, from, subject, and body set. Am I missing a required field or is something else that could possibly be wrong? I'll post my code here to let you take a gander.

set objmail = Server.CreateObject("CDONTS.Newmail")
objmail.from = "sendingaccount@me.unit.mil"
objmail.To = "recieveingaccount@me.whatever.mil"
objmail.subject = testing
htmltext = htmltext & &quot;<html>&quot;
htmltext = htmltext & &quot;<head>&quot;
htmltext = htmltext & &quot;<title>TESTING</title>&quot;
htmltext = htmltext & &quot;</head>&quot;
htmltext = htmltext & &quot;<body bgcolor=#ffffff>&quot;
htmltext = htmltext & &quot;<center>&quot;
htmltext = htmltext & &quot;<p>A test for everyone</p></center></body></html>&quot;
objmail.bodyformat = 0
objmail.mailformat = 0
objmail.body = htmltext
objmail.send
set objmail = nothing
 
objmail.subject = testing should be objmail.subject = &quot;testing&quot; its best to put this section htmltext = htmltext & &quot;<html>&quot;
htmltext = htmltext & &quot;<head>&quot;
htmltext = htmltext & &quot;<title>TESTING</title>&quot;
htmltext = htmltext & &quot;</head>&quot;
htmltext = htmltext & &quot;<body bgcolor=#ffffff>&quot;
htmltext = htmltext & &quot;<center>&quot;
htmltext = htmltext & &quot;<p>A test for


at the top of the form !!! above set objmail = Server.CreateObject(&quot;CDONTS.Newmail&quot;)

that should be better
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top