Forum Moderators: open

Message Too Old, No Replies

Asp Cdonts Object

i am receiving an error in creation of cdonts object

         

nabeell

7:27 pm on Sep 8, 2003 (gmt 0)

10+ Year Member



Hello!

MY problem is about cdonts object . when i creat CDONTS object i received error ( cannot creat active X control "CDONTS.NewMail" ... is there any alternative code of mail sending in ASP. MY existing code is


set mynewmail = CreatObject ("CDONTS.NewMail")

i am receiving error on this line .... will anyone identify error in this line

mattglet

7:53 pm on Sep 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



alternatives: ASPMail, ASPEmail

if the line you listed is your exact code, it should be:
set mynewmail = Server.CreateObject("CDONTS.NewMail")

-Matt

martin68

7:49 pm on Sep 17, 2003 (gmt 0)

10+ Year Member



Here is a function that I wrote to send an HTML email:

Function SendHTMLEmail(strSendTo, strSubject, strBody)
dim objEMail
set objEMail = Server.CreateObject("CDONTS.NewMail")
objEMail.To = strSendTo
objEMail.From = 'EMAIL FROM ADDRESS.
objEMail.subject = strSubject
objEMail.body = strBody
objEmail.BodyFormat = 0
objEmail.MailFormat = 0
objEMail.send
set objEMail = nothing
End Function