最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
附件:sendmail.asp
时间:2008-01-12 编辑:简简单单 来源:一聚教程网
<%@ 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"
%>
相关文章
- ASP实现加法验证码方法 09-16
- ASP错误捕获的几种常规处理方法介绍 09-16
- asp中获取日期为星期几的技巧 09-14
- Asp编码优化参考 09-14
- .Net Core认证系统源码解析 12-26
- SharePoint Server 2019新特性介绍 01-15