hi,
i m trying to get the email address field value and to send an automatic email at this address. I m using the following code :
<%@ LANGUAGE="VBSCRIPT"%>
<%email = request.form("email"
Dim MyMail
Set MyMail = Server.CreateObject("CDONTS.NewMail"
MyMail.From = "justme@myaddress.com"
MyMail.To = " + email + "
MyMail.Cc = "friend3@address3.com;friend4@address4.com"
MyMail.Bcc = "friend5@address5.com;friend6@address6.com"
MyMail.Subject = "sending email via CDONTS NewMail"
MyMail.BodyFormat = 1
MyMail.MailFormat = 0
MyMail.Importance = 2
MyMail.Body = "Sending email with CDONTS NewMail" &_
"objects is easy! Try it!"
MyMail.Attachfile "c:\path\smiley.gif", "smilefile.gif", 1
MyMail.Send , "youtoo@youraddress.com", "new subject"
Set MyMail = Nothing
%>
An error occurs : "echec Server.CreateObject("CDONTS.NewMail""
I m using PWS under WinMe
i m trying to get the email address field value and to send an automatic email at this address. I m using the following code :
<%@ LANGUAGE="VBSCRIPT"%>
<%email = request.form("email"
Dim MyMail
Set MyMail = Server.CreateObject("CDONTS.NewMail"
MyMail.From = "justme@myaddress.com"
MyMail.To = " + email + "
MyMail.Cc = "friend3@address3.com;friend4@address4.com"
MyMail.Bcc = "friend5@address5.com;friend6@address6.com"
MyMail.Subject = "sending email via CDONTS NewMail"
MyMail.BodyFormat = 1
MyMail.MailFormat = 0
MyMail.Importance = 2
MyMail.Body = "Sending email with CDONTS NewMail" &_
"objects is easy! Try it!"
MyMail.Attachfile "c:\path\smiley.gif", "smilefile.gif", 1
MyMail.Send , "youtoo@youraddress.com", "new subject"
Set MyMail = Nothing
%>
An error occurs : "echec Server.CreateObject("CDONTS.NewMail""
I m using PWS under WinMe