CDONTS.NEWMAIL can choose to send email in HTML format

zhaozj2021-02-16  127

Setting the BodyFormat and MailFormat attributes of the NewMail object to 0, then specify the HTML to the Body property, you can transfer email in an HTML format, for example:

Set mail = server.createObject ("cdonts.newmail")

Mail.to = "

Abc@abc.com "

mail.from = "

123@123.com "

Mail.subject = "Hello"

mail.bodyformat = 0

Mail.mailformat = 0

Mail.body = body 'body is HTML format

Mail.send

转载请注明原文地址:https://www.9cbs.com/read-8344.html

New Post(0)