08 Sep 2010
Support Center
»
Knowledgebase
»
Jmail Sample Script
Jmail Sample Script
Solution
<%
dim mail_user
dim mail_pass
dim mail_server
mail_user = "email@domain.com"
mail_pass = "YourEmailPassword"
mail_server = "mail.domain.com"
dim mail_content
mail_content = "This is a test mail using Jmail"
dim mail_to
dim mail_subject
dim mail_body
mail_to = mail_user
mail_subject = "Sample Email"
mail_body = "Content : " + mail_content
dim SMail
Set SMail = Server.CreateObject("Jmail.Message")
SMail.silent = true
SMail.Logging = true
SMail.Charset = "utf-8"
SMail.ContentType = "text/html"
SMail.MailServerUserName = mail_user
SMail.MailServerPassword = mail_pass
SMail.From = mail_user
SMail.FromName = mail_user
SMail.AddRecipient mail_to
SMail.Subject = mail_subject
SMail.Body = mail_body
SMail.Send mail_server
set SMail = nothing
response.write "Sent ok, please check" + mail_to
%>
Article Details
Article ID:
570
Created On:
21 Dec 2009 12:50 PM
This answer was helpful
This answer was not helpful
User Comments
Add a Comment
Sharing is good. If you have a comment about this entry, please feel free to share. The comments might be reviewed by our staff, and may require approval before being posted. Questions posted will not be answered. Please submit a Ticket for support requests.
Fullname:
Email: (Optional)
Comments:
Login
[Lost Password]
Email:
Password:
Remember Me:
Search
-- Entire Support Site --
Knowledgebase
Downloads
Troubleshooter
Article Options
Add Comment
Print Article
PDF Version
Email Article
Add to Favorites
Home
|
Register
|
Submit a Ticket
|
Knowledgebase
|
Troubleshooter
|
News
|
Downloads
Language:
English (U.S.)
Help Desk Software By Kayako eSupport v3.00.90