动网论坛,站长建站首选,国内使用量最多的论坛软件 动网论坛官方技术讨论区 站长工具 申请属于您自己的免费论坛
首页 | 新闻资讯 | 网站运营 | 网络编程 | 数据库 | 服务器 | 网页设计 | 图像媒体 | 网络应用 | 搜索优化 | 资源下载 | 动网主机 | DVBOX
    本站内  互联网 ASP论坛  ASP.Net论坛  PHP论坛
  
   Asp → 阅读文章

 W3 Jmail 使用范例

作者来源: 
阅读 数 55 人次 , 2006-4-3 0:03:00 


<html>
<head>
<title>confirmation </title>
<body>
<%

set jmail = server.createobject("jmail.smtpmail")

' this is my local smtp server
jmail.serveraddress = "mail.yourdomain.com:25"

' this is me....
jmail.sender = "myemail@mydomain.net"
jmail.subject = "here you go..."

' get the recipients mailbox from a form (note the lack of a equal sign).
jmail.addrecipient "mum@any.com"
jmail.addrecipient "dad@some.com"

' the body property is both read and write.
' if you want to append text to the body you can
' use jmail.body = jmail.body & "hello world!"
' or you can use jmail.appendtext "hello world!"
' which in many cases is easier to use.
jmail.body = "here you go. your request has been approved" &_
"and the program is attached to this message"


' 1 - highest priority (urgent)
' 3 - normal
' 5 - lowest

jmail.priority = 1

jmail.addheader "originating-ip", request.servervariables("remote_addr")

' must make sure that iusr_ has access to the following files.
jmail.appendbodyfromfile "e:mailstandard_footer.txt"
jmail.addattachment "e:productsmyproduct.exe"

' send it...
jmail.execute

%>
<center>

an e-mail has been sent to your mailbox (<%=request.form("email")%>).

</center>
</body>
</html>

 本文Tagsjmail  
 收藏本文  打印本文  论坛讨论  关闭窗口
· 上一篇:W3 Jmail 参考说明
· 下一篇:w3 upload组件实例应用
· 在asp聊天室里实现房间功能和用户显示
· ASP Chart 简要介绍
· 分类算法要解决的问题
· 在ASP处理程序时,进度显示
· 几个ASP好用的自定义函数


关于本站 | 联系我们 | 业务合作 | 客户案例 | 诚聘英才 | 广告合作 | 收藏本站
海口动网先锋网络科技有限公司版权所有
Copyright © 2000 - 2006 Cndw.Com
中华人民共和国电信与信息服务业务经营许可证编号 琼 ICP 020077