Your location:FAQ > Scripting > ASP
Does Communilink support Jmail?

Our Windows hosting servers support Jmail. Below are 2 simple examples written in ASP. For more information, please visit theJMail website.
 
 
Sample I : Use Localhost as SMTP Server
===================================================
Set JMail = Server.CreateObject("JMail.SMTPMail")
JMail.ServerAddress = "www.YourDomain.com"
JMail.Sender = "
[email protected]"
JMail.Subject = "JMail Sample"
JMail.AddRecipient "
[email protected]"
JMail.body = "This is a sample message sent with JMail."
JMail.Execute
 
 
 
Sample II : Use Specified SMTP Server and User Login+Password
===================================================
set msg = Server.CreateOBject( "JMail.Message" )
msg.Logging = true
msg.silent = true
msg.From = "
[email protected]"
msg.FromName = "My Realname"
msg.AddRecipient "
[email protected]", "His Name"
msg.AddRecipient "
[email protected]"
msg.Subject = "How you doin?"
msg.Body = "Hello Jim" & vbCrLf & vbCrLf & "How's it going? ..."
' username = user%domain.com
' password = password
' smtp server = smtp.isp.com
if not msg.Send("user%domain.com:password@
smtp.isp.com" ) then
    Response.write msg.log
else
    Response.write "Message sent succesfully!"
end if