Information
Article ID86
Created On10/18/2008
Modified10/18/2008
JMail Sample Script
JMail is installed on each of our web servers and may be used to send mail programmatically. 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 succesful then the specified recipient
will recieve the test email shortly.