JMail Sample Script

JMail is installed on each of our web servers and may be used to send mail pro-grammatically. Below is a simple example written in ASP. For more information please see the JMail website

<%
Set JMail = Server.CreateObject("JMail.SMTPMail")
JMail.ServerAddress = "yourdomain.com"
JMail.Sender = "yourname@yourdomain.com"
JMail.Subject = "JMail Sample"
JMail.AddRecipient "recipient@theirdomain.com"
JMail.body = "This is a sample message sent with JMail."
JMail.Execute
%>

Replace the values above as appropriate, then place the code in a file on your site called jmailtest.asp. When that's done go to http://www.yourdomain.com/jmailtest.asp. If the test was successful then the specified recipient will receive the test email shortly.
 

Add Feedback