W3 JMail Use Example

Source: Internet
Author: User
Tags mail
<title>confirmation </title>
<body>
<%

Set JMail = Server.CreateObject ("Jmail.smtpmail")

' This is I local SMTP server
jmail.serveraddress = "Mail.yourdomain.com:25"

' This is me ....
Jmail.sender = "Myemail@mydomain.net"
Jmail.subject = "Here's your 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 is both read and write.
' If you are want to append text to the body can
' Use Jmail.body = jmail.body & ' Hello world! '
' Or you can use Jmail.appendtext ' Hello world! '
' Which in many cases are easier to-use.
Jmail.body = "Here's your go." Your request has been approved "&_
"And the program are attached to the"


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

jmail.priority = 1

Jmail.addheader "Originating-ip", Request.ServerVariables ("REMOTE_ADDR")

' must make sure this 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>


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.