一聚教程网:一个值得你收藏的教程网站

最新下载

asp+发送email

时间:2008-01-12 00:00:00 编辑:简简单单 来源:转载

来源:http://www.aspfree.com/asp+/demos/emailhtml1.aspx
html1.htm
---------------------------------------------------------------------






发送邮件给:






emal.aspx
---------------------------------------------------------------------
<%@ Import Namespace="System.Web.Util" %>
<script language="VB" runat=server ID=Script1>
Sub Page_load(Sender as Object, E as EventArgs)
Dim MyMail as New MailMessage
MyMail.To = request.form("mailto")
MyMail.From = "webmaster"
MyMail.Subject = "webmaster给您发了一封电子邮件"
MyMail.BodyFormat = MailFormat.Html
MyMail.Body = "

ChinaASP.com 使用ASP+程序给你发了一封EMail! Hohoho!

"
SmtpMail.Send(MyMail)
End Sub
</script>


ASP+邮件发送

网站留言

热门栏目