Properties and methods of JMail JMail
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
Jmai