用ASP发送HTML格式的邮件
类别: ASP教程
<%
Dim objMail
Set objMail = CreateObject("CDONTS.Newmail")
objMail.TO = "user@fcxx.net"
objMail.From = "admin@etoow.com" \'在这里可以选择你要发送去那里的地址
objmail.Subject = "HTML EMAIL!"
objMail.MailFormat = cdoMailFormatMime
objMail.BodyFormat = cdoBodyFormatHTML
objMail.Body = "<html><body><p align=\'center\'><b>Hey there!</b></p><p align=\'center\'><b>This is a html doc
in your Email!!!!</b></p><p align=\'center\'> </p><p align=\'center\'> </p><p
align=\'center\'><i><u>We kick the Llamas Ass!!!!</u></i></p></body></html>"
objMail.send
set objMail = Nothing
%>
Dim objMail
Set objMail = CreateObject("CDONTS.Newmail")
objMail.TO = "user@fcxx.net"
objMail.From = "admin@etoow.com" \'在这里可以选择你要发送去那里的地址
objmail.Subject = "HTML EMAIL!"
objMail.MailFormat = cdoMailFormatMime
objMail.BodyFormat = cdoBodyFormatHTML
objMail.Body = "<html><body><p align=\'center\'><b>Hey there!</b></p><p align=\'center\'><b>This is a html doc
in your Email!!!!</b></p><p align=\'center\'> </p><p align=\'center\'> </p><p
align=\'center\'><i><u>We kick the Llamas Ass!!!!</u></i></p></body></html>"
objMail.send
set objMail = Nothing
%>
- 上一篇: 实现搜索结果的关键词变色标注的程序(使用正则表达式)
- 下一篇: 用ASP创建数据库
-= 资 源 教 程 =-
文 章 搜 索