Knowledgebase: ASP programming
How to use Jmail ?
Posted by Admin on 15 July 2005 08:51 AM
 
Below demostrates the sample coding for JMail usage:
 
01. <%
02.    Set JMail = Server.CreateObject("JMail.SMTPMail")
03.    JMail.ServerAddress = "mail.yourdomain.com"
04.    JMail.Sender = "test@yourdomian.com"
05.    JMail.Subject = "Email Subject"
06.    JMail.AddRecipient "me@medomain.com"
07.    JMail.Body = "Email contents"
08.    JMail.Priority = 1
09.    JMail.Execute
10. %>
 
Explanation According to Line
01. Open ASP tag
02. Create instance of Mailer control
03. Set the mail server address
04. Set senders email
05. Set Email subject
06. Add recipient email address to the email
07. Enter email content
08. Set the priority of the email (1=urgent,3=normal, 5=low)
09. Send email
10. Close ASP Tag
(352 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).