Dim myMail <BR>Set myMail = CreateObject("CDONTS.NewMail") <BR> <BR>HTML = "<!DOCTYPE HTML PUBLIC ""-//IETF//DTD HTML//EN"">" & NL <BR>HTML = HTML & "<html>" <BR>HTML = HTML & "<head>" <BR>HTML = HTML & "<meta http-equiv=""Content-Type""" <BR>HTML = HTML & "HTML = HTML & ""content=""text/html; charset=iso-8859-1"">""" <BR>HTML = HTML & "<title>Sample NewMail</title>" <BR>HTML = HTML & "</head>" <BR>HTML = HTML & "<body>" <BR>HTML = HTML & "This is a sample message being sent using HTML. whatever u want to write..you can do here<BR><BR></body>" <BR>HTML = HTML & "</html>" <BR> <BR>myMail.From = "firstname.lastname@example.org" <BR>myMail.To = "email@example.com" <BR>myMail.Subject = "Sample Message" <BR>myMail.BodyFormat = 0 <BR>myMail.MailFormat = 0 <BR>myMail.Body = HTML <BR>myMail.Send <BR>Set myMail = Nothing <BR>
Hi!<BR><BR>I am also trying to use ASP to send mail. I put your script in one of my applications, but I got the response that the ActiveX-component could not create the object: 'CDONTS.NewMail'. What am I doing wrong?<BR><BR>Thanks<BR>Anna<BR>
I am having a HTML form whose contents are dynamic. It contains<BR>a table type with variable no of records being retreive from the database. (We are using a tool called brio to connect and execute queries across the database, this tool throws HTML back to the browser). In such case i have to grab the contents of multiple records from the form. This i have to put in the body of my mail message. Any one knows about this?