Properties and methods of JMail

Source: Internet
Author: User
Tags date base64 character set copy header integer log port number

Property:
Body:string
(v3.0)
The main body of e-mail
Jmail.body = "Hello World"

Charset:string
(v3.0)
Set the character set for the message, default to "Us-ascii"
Jmail.charset = "Us-ascii"

Contenttransferencoding:string
(v3.0)
Specify content encoding, default to "Quoted-printable"
jmail.contenttransferencoding = "Base64"

Contenttype:string
(v3.0)
The header of this message is set, the default is "Text/plain" can be set
into whatever situation you need. You want to send HTML information, change this header file to "text/html"
Jmail.contenttype = "Text/html"

Deferreddelivery:date
(v3.0)
Set the time. If the MailServer server supports it, you can set when to send the message.
Jmail.deferreddelivery = new Date (in). getVarDate ();

Encoding:string
(v3.0)
This can is used to change the default attachment encoding from Base64. Valid options are

"Base64", "Uuencode" or "quoted-printable"
jmail.encoding = "Base64"

Errorcode:integer
(v3.0)
Report error message if Jmail.silent is set to True
Response.Write (Jmail.errorcode)

Errormessage:string
(v3.0)
Report error message if Jmail.silent is set to True
Response.Write (Jmail.errormessage)

Errorsource:string
(v3.0)
Report error message if Jmail.silent is set to True
Response.Write (Jmail.errorsource)

Isoencodeheaders:boolean
(v3.0)
The header information code is set according to the iso-8859-1 character. The default is true.
Jmail.isoencodeheaders = False

Lazysend:boolean
(v3.0)
This property is to put the message in the buffer until it is sent, without any error message
Jmail.lazysend = true;

Log:string
(v3.0)
When Loging is set, this log is JMail generated
Response.Write (JMail.Log)

Logging:boolean
(v3.0)
can/cannot log in with JMail
Jmail.logging = True

Maildomain:string
(v3.0)
You can ignore the Ehlo/helo state on your mailserver.
Jmail.maildomain = "Hello.world.com"

Mimeversion:string
(v3.0)
A specialized MIME version. The default is "1.0"
Jmail.mimeversion = "1.0"

Priority:integer
(v3.0)
The priority of the message can range from 1 to 5.
The greater the priority is about high, for example, 5 highest, 1 lowest
General set to 3
Jmail.priority = 3

Recipients:string
(v3.0)
The recipient of this information has only read-only properties
Response.Write ("" + Jmail.recipients + "")

Replyto:string
(v3.0)
Specify an optional return address
Jmail.replyto = "President@dimac.net"

Returnreceipt:boolean
(v3.0)
Whether to reply according to the sender's request, the default is "false"
Jmail.returnreceipt = True

Sender:string
(v3.0)
Mailing Address
Jmail.sender = "Batman@dimac.net"

Sendername:string
(v3.0)
Name of the person receiving the letter
Jmail.sendername = "Bat man"

Serveraddress:string
(v3.0)
The address of the server. Can have a lot of server addresses, followed by the port number
jmail.serveraddress = "mail.mydom.net; Mail2.mydom.net:2500 "

Silent:boolean
(v3.0)
When set to True JMail will check all messages after Jmail.execute () is executed
Returns TRUE or false based on the success of the letter sent depending on the success of the operation

Jmail.silent = True

Simplelayout:boolean
(v3.0)
Set to True to reduce the number of JMail product headers
Jmail.simplelayout = True

Subject:string
(v3.0)
The title of the message.
Jmail.subject = "Dimac rocks big time!"


Usepipelining:boolean
(v3.0)
Pipeline support.
Jmail.pipelining = False


The method of JMail
AddAttachment (FileName, [ContentType])
(v3.0)
Add an attachment
Jmail.addattachment ("C:\autoexec.bat");

AddHeader (Xheader, Value)
(v3.0)
Add a header message
Jmail.addheader ("Originating-ip", "193.15.14.623");

Addnativeheader (Header, Value)
(v3.0)
Add a header message
Jmail.addnativeheader ("Mta-settings", "Route");

AddRecipient (Email)
(v3.0)
Join a recipient
Jmail.addrecipient ("Info@dimac.net");

ADDRECIPIENTBCC (Email)
(v3.0)
Masks an acceptable person. Do not send mail to it
JMAIL.ADDRECIPIENTBCC ("Someone@somedomain.net");

ADDRECIPIENTCC (Email)
(v3.0)
Copy a copy to another recipient
JMAIL.ADDRECIPIENTCC ("Someone@somedomain.net");

Addrecipientex (Email, Name)
(v3.0)
Add a name that corresponds to a message
Jmail.addrecipientex ("Info@dimac.net", "Dimac info");

Appendbodyfromfile (FileName)
(v3.0)
Send the contents of a file
Jmail.appendbodyfromfile ("C:\mytext.txt");

AppendText (Text)
(v3.0)
Add attachment
Jmail.appendtext ("Text appended to Message body");

Clearattachments ()
(v3.0)
Clear Attachments List
Jmail.clearattachments ();

Clearcustomheaders ()
(v3.0)
Clear all User header information
Jmail.clearcustomheaders ();

Clearrecipients ()
(v3.0)
Empty inbox
Jmail.clearrecipients ();


Close ()
(v3.0)
Forcibly prevent the sending of messages
Jmail.close ();

Execute (): Boolean
(v3.0)
Perform a message to send to the server
Jmail.execute ();

Extractemailaddressesfromurl (bstrURL, [Bstrauth])
(v3.0)
Add mail address from URL or download
Jmail.extractemailaddressesfromurl ("http://duplo.org/generateEmailList.asp");

Logcustommessage (Message)
(v3.0)
Login user information to JMail log, this feature can only be used when setting the loging to True
Jmail.logcustommessage ("Hello World");



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.