- 热门文章:
- · w3 upload组件实例应用2
- · w3 upload组件实例应用1
- · rs.open sql,conn,1,1 的后两个 1,1 各代表什么?
- · 如何编程实现修改数据库 login Id 的口令
- · Top 和 Distinct 的 区别
- · 在select语句中使用top的一些小技巧
- · 利用SQL语言有没有办法查到表中哪些记录中的全部(或某些字段)的值相同?
- · 如何编程实现备份数据库
- · 如何在sql server系统表中获得用户表的修改时间
- · Select INTO 语句出错,如何解决?
- · 如何 编程实现 备份数据库
- · 我需要多大马力?(自MS)--IIS的配置需求
上一篇:W3 Jmail 参考说明 >>
W3 Jmail 使用范例
<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:\mail\standard_footer.txt"
jmail.addattachment "e:\products\myproduct.exe"
send it...
jmail.execute
%>
<center>
an e-mail has been sent to your mailbox (<%=request.form("email")%>).
</center>
</body>
</html>
()
下一篇:w3 upload组件实例应用2 >>
相关文章:
- · ADO如何新增修改删除数据库的记录呢?
- · 如何调试用VC写的服务器端控件?
- · 服务器端组件的最小需求是什么?我能够使用已经存在的Automation servers吗
- · 能不能在ASP中实现对服务器上执行本地程序,比如执行一个可执行文件
- · ASP.NET 中的随机密码生成
- · J2EE 开发购物网站 经验篇 - 建表
- · 实战 J2EE 开发购物网站 - 创建数据库
- · 实战 J2EE 开发购物网站 二
- · 实战 J2EE 开发购物网站 经验篇
- · 认识和优化 connection 对象
- · 浅谈 ASP 程序的编程与优化
- · 优化Web数据库页面
- · 怎样才能将query string从一个asp文件传送到另一个?
- · 为何我在asp程序内使用msgbox,程序出错说没有权限
- · 如何传递变量从一页到另一页
- · 强迫输入密码对话框
- · 如何链结到一副图片上
- · 如何确定对方的IP地址
- · 如何回到先前的页面
- · 如何显示随机图象
- · 如何计算每天的平均反复访问人数
- · 我如何知道使用者所用的浏览器?
- · 如何用Asp判断你的网站的虚拟物理路径
- · 怎样才能方便的建立自己的每日更新
- · 有关ASP的一些常见问题(四)
- · 有关ASP的一些常见问题(三)
- · 有关ASP的一些常见问题(二)
- · 有关ASP的一些常见问题(一)
- · 怎么用ASP实现分页(二)
- · 怎么用ASP实现分页(一)
- · 怎样才能实现随机广告
- · Visual InterDev常见问题解答(二)
- · Visual InterDev常见问题解答(一)
- · 怎样才能知道访问者从哪里来?
- · 如何定义一个session 数组?
- · 请问:下拉式菜单中的选项能否做超链接或怎样做?
- · Sql Server 数据库,想用OLE db连数据库,怎么连呀?
- · 有没有办法保护自己的源代码,不给人看到?
