How to send an accessory, format HTML? A routine is provided below.
<% @Language = VBScript%> <% response.buffer = trueresponse.expires = 0
'Creating an object instance set mymail = server.createObject ("cdonts.newmail")
'The following is the content that will be sent html = "" html = html & "
" html = html & " " html = html & "this is a test mail in html
" HTML = HTML & "Mail Content Here ... font> p>" HTML = HTML & " body>" HTML = HTML & " html>"
'Sender mymail.from = "somebody@somewhere.com"
'Recipient mymail.to = "nobody@somewhere.com"
'Pixabay of Delivery MYMAIL.BCC = "Nobody@somewhere.com"
'CC = "nobody@somewhere.com"
'The importance of mail' 0 importance low '1 Importance General (default)' 2 High Importance High MyMail.Importance = 2
'Mail Topic mymail.subject = "Test Mail in HTML"
'Attachment (Note E: / Test.txt refers to the location on the server, if you use a relative path, you must use server.mappath to map to real paths) MyMail.attachFile "E: / Test.txt"
The text format of 'newmail object' 0 indicates that the body can contain hypertext marking language (HTML) '1 indicating that the body is only used for plain text (default) MyMail.BodyFormat = 0
'Newmail object Settings Code' 0 Indicates that will use MIME format '1 to indicate continuous text (default) MyMail.mailFormat = 0
'Give the text of the email object mymail.body = HTML
'Take a message with MYMAIL.SEND
'Destroy the object instance, release memory set mymail = Nothing%>