Articles

Windows Server - ASP Jmail sample

Category: Coding

 Save below script to Jmail.asp

 

 =====================================

<% 
Set jmail = Server.CreateObject("JMAIL.SMTPMail")
jmail.Charset = "iso-8859-1"
jmail.ContentType = "text/html"
jmail.ServerAddress = "localhost"
jmail.AddRecipient "xxx@xxx.com";
jmail.SenderName = "testing"
jmail.Sender = "xxxx@xxxx.com";
jmail.Priority = 3
jmail.Subject = "Mail test"
jmail.Body = "it is a email testing from Jmail Function"
jmail.Execute()
jmail.Close
%> 

=====================================

iTec.Asia! . .