繁体中文
设为首页
加入收藏
当前位置:ASP技术首页 >> 邮件相关 >> 附件:sendmail.asp

附件:sendmail.asp

2004-10-01 08:26:10  作者:  来源:互联网  浏览次数:45  文字大小:【】【】【
简介:<!--     This sample script uses the CDO for NTS Library to     send email to a specific user.     Leon Braginski & Matt Powell (c) ...
关键字:sendmail 附件 asp

<%@ LANGUAGE = "VBScript" %>

<%

If (Request.ServerVariables ("REQUEST_METHOD") = "POST") then

From = Request.Form("from")

To_ = Request.Form("to")

Subject = Request.Form("subject")

Body = Request.Form("body")

else

' Assume it is GET

From = Request.QueryString("from")

To_ = Request.QueryString("to")

Subject = Request.QueryString("subject")

Body = Request.QueryString("body")

end if

Set objNewMail = Server.CreateObject ("CDONTS.NewMail")

objNewMail.Send From, To_, Subject, Body

Set objNewMail = Nothing

Response.Write "Message was sent"

%>

责任编辑:admin
相关文章