Below demonstrates the sample coding for W3 JMail usage:

Line No Coding
1 <%
2 Set JMail = Server.CreateObject ("JMail.SMTPMail")
3 JMail.ServerAddress = "mail.yourdomain.com:25"
4 JMail.Sender = "myemail@mydomain.net"
5 JMail.Subject = "Here you go..."
6 JMail.AddRecipient "mum@any.com"
7 JMail.Body = "Here you go. Your request has been approved" &_
"and the program is attached to this message"
8 JMail.Priority = 1
9 JMail.Execute
10 %>

Line No Explanation
1 Open ASP tag
2 Create instance of Mailer control
3 Set the mail server address
4 Set senders email
5 Set Email subject
6 Add recipient email address to the email
7 Enter email content
8 Set the priority of the email (1=urgent,3=normal, 5=low)
9 Send email
10 Close ASP Tag

Sample Coding:

Add Feedback