asp使用Jmail组件发送信息到指定邮箱
当前位置:点晴教程→知识管理交流
→『 技术文档交流 』
jmail.html send.asp <% name = request.form ("name") email= request.form ("email") address= request.form ("address") mailsubject= request.form ("mailsubject") text1 = request.form ("text1") text2 = request.form ("text2") text3 = request.form ("text3") %> <% ' 创建jmail对象: set jmail = server.createobject("jmail.smtpmail") ' 设置发送邮件服务器(smtp): jmail.serveraddress = "mail.abc.com:25" ' 发件人的信箱: jmail.sender = email ' 邮件标题: jmail.subject = mailsubject ' 设置邮件的收件人信箱 jmail.addrecipient "abc@abc.com" ' 下面就是填表在内容区填写的内容,&是连接符,vbcrlf表示换行回车: mess = mess & "---------------webmail表单开始-------------------" & vbcrlf mess = mess & "留言人姓名:" & name & vbcrlf mess = mess & "留言人邮件:" & email & vbcrlf mess = mess & "留言人地址:" & address & vbcrlf mess = mess & "留言内容一:" & text1 & vbcrlf mess = mess & "留言内容二:" & text2 & vbcrlf mess = mess & "留言内容三:" & text3 & vbcrlf mess = mess & "---------------webmail表单结束-------------------" jmail.body = mess ' 设置邮件的优先级(1-5,1为最高): jmail.priority = 1 ' 执行发送任务: jmail.execute %> 您递交邮件已顺利发出,感谢您的意见和建议! 该文章在 2010/7/3 10:52:03 编辑过 |
关键字查询
相关文章
正在查询... |