深圳升蓝软件
数据库开发 .Net技术  |  ASP技术 PHP技术 JSP技术 应用技术类   
Hiblue Software

用ASP发送HTML格式的邮件


March 25,2004
<%
Dim objMail
Set objMail = CreateObject("CDONTS.Newmail")
objMail.TO = "[email protected]"
objMail.From = "[email protected]" '在这里可以选择你要发送去那里的地址
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'>&nbsp;</p><p align='center'>&nbsp;</p><p
align='center'><i><u>We kick the Llamas Ass!!!!</u></i></p></body></html>"
objMail.send
set objMail = Nothing
%>
Copyright © 2001-2008 Shenzhen Hiblue Software Team All rights reserved