asp使用CDONTS发邮件

<%
Dim MailTo,MailFrom,MailSubject,MailBody
MailTo=Request.Form("MailTo")
MailFrom=Request.Form("MailFrom")
MailSubject=Request.Form("MailSubject")
MailBody=Request.Form("MailBody")

Set mail = Server.CreateObject("CDONTS.NewMail")
mail.TO = MailTo'"abc@xxx.com"
mail.From = MailFrom'"yourmail@xxx.com"
mail.Subject = MailSubject'"主题"
mail.Body = MailBody'"E-Mail内容"
mail.Send
Set mail=Nothing
%>

posted @ 2006-02-09 14:16  crane  阅读(125)  评论(0编辑  收藏  举报