Send Html e-mail produced by Asp code
There is a bill page, it was produced by a Asp code according to users choice. And while user sees this page, the other Asp process sends this bill as html e-mail.
Now what must this code be?
Suppose that CDONTS.NewMail is used.
Thanks a lot
Comments
Check the Smart Mailer extension
Check our Smart Mailer extension here at DMXzone.
http://www.dmxzone.com/go?5578
Martha Graham
DMXzone.com
Use HTML email
You can simply add Email script into page which send the information in HTML format from database to client when the page is viewed.
CDONTS is fine or the New CDOYS
example
'body of email
mailbody = "<font size =3 face = Verdana>" & "<strong>" & rsuserdetails("UserForename") & " " & rsuserdetails("UserSurname") & "</strong>" & "</font>" & "<br>" & "<br>"
mailbody = mailbody & "<font size =2 face = Verdana>" & "<strong>" & "Your Bill" & "</strong>" & "<br>" & "<br>"
mailbody = mailbody & "<font size =2 face = Verdana>" & "details" & rsuserdetails("details") & "</font>"
' Send the e-mail
Set objCDO = Server.CreateObject("Cdonts.NewMail")
objCDO.BodyFormat =0 ' 0 is a plain text, 0 "zero" is a HTML
objCDO.MailFormat = 0 ' 1 is a plain text, 0 "zero" is mime format
objCDO.To = rsuserdetails("UserEmail")<--enter your recordset and column here
objCDO.From = "enter your email here"
objCDO.Subject ="Email title"
objCDO.Body =mailbody
objCDO.Send
Set objCDO = Nothing
This is a basic example, you can replace the email content at will, just remembering to format it correctly.
Hope this helps
RE: Check the Smart Mailer extension
You must me logged in to write a comment.