How to use Jmail ?

Below demostrates the
sample coding for JMail
usage:

 


01.

<%


02.   
Set
JMail =

Server.CreateObject
("JMail.SMTPMail")


03.    JMail.ServerAddress
= "mail.yourdomain.com"


04.    JMail.Sender
= "test@yourdomian.com"

05.    JMail.Subject
= "Email Subject"


06.    JMail.AddRecipient
"me@medomain.com"


07.    JMail.Body
= "Email
contents"

08.    JMail.Priority
= 1


09.    JMail.Execute


10.

%>


 



Explanation According to
Line



01. Open ASP tag

02. Create
instance of Mailer
control


03. Set the mail
server address


04. Set senders
email

05. Set Email
subject


06. Add recipient
email address to the
email


07. Enter email
content


08. Set the priority
of the email
(1=urgent,3=normal,
5=low)


09. Send email


10. Close ASP Tag
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to use CDOSYS Email ?

  Use following code for CDOSYS Email componets. <% Set cdoConfig =...

How to use Dundas Upload ?

The following code demonstrates how to populate the Upload control's collections, save uploaded...

error:Include file not found

Cause: Mostly This error cause when the parent path of your domain does not enable....

How to increase ASP timeout ?

You can increase timeout time from the ASP script itself by using Server.ScriptTimeOut property...

error:'8004020f' in CDONTS

  This error cause when you use wrong mail server in CDONTS Email componets. You will...