Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 网站建设 > ASP > W3 Jmail 使用范例
【标  题】:W3 Jmail 使用范例
【关键字】:Jmail,mail,W3,ai,W3,Jmail
【来  源】:网络

W3 Jmail 使用范例

Your Ad Here <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:\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> 
C#语言初级入门(3):【上一篇】
C#语言初级入门(4):【下一篇】
【相关文章】
没有相关文章
【随机文章】
  • JSP中数据源的绑定方法(Resin配置文件中和代码动态配置的方法)
  • (转)非法关机的时候,postgresql启动故障的解决
  • Awk 编程学习笔记之一
  • FastReport 2.51 For D2-7/CB2-6
  • makefile(5)
  • 安全工具
  • Linux AS3中安装Oracle 9.2.0.4的安装步骤
  • Ubuntu6.06的安装记录
  • ospf_monitor 命令
  • 用TreeView浏览目录
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.