W3 JMail Use Instructions Chinese version
Jmail.smtpmail
Body:string
(v3.0)
Letter body, body, using appendtext append content
such as: Jmail.body = "Hello World"
Charset:string
(v3.0)
Character set, default to "Us-ascii"
such as: Jmail.charset = "Us-ascii"
Contenttransferencoding:string
(v3.0)
Specifies the encoding for content transfer, by default, "Quoted-printable"
such as: jmail.contenttransferencoding = "base64"
Contenttype:string
(v3.0)
The contentype of the letter. The default is "Text/plain", but it can be set to the other type you want.
If you send the message in HTML format, change to "text/html".
such as: Jmail.contenttype = "text/html"
Deferreddelivery:date
(v3.0)
Set up deferred forwarding. If the mail server supports it, the message will not be sent until this time.
such as: (Javascript) jmail.deferreddelivery = new Date (n.) getvardate ();
Encoding:string
(v3.0)
This property can be used to change the encoding of the attachment (by default, "Base64"). You can choose to use the "base64", "Uuencode" or "quoted-
Printable "
such as: jmail.encoding = "base64"
Errorcode:integer
(v3.0)
If Jmail.silent is set to True,errorcode contains an error code
such as: Response.Write (Jmail.errorcode);
Errormessage:string
(v3.0)
If Jmail.silent is set to True, contains an error message
such as: Response.Write (Jmail.errormessage);
Errorsource:string
(v3.0)
Contains the error source if Jmail.silent is set to True
such as: Response.Write (Jmail.errorsource);
Isoencodeheaders:boolean
(v3.0)
Whether to encode the letterhead into the iso-8859-1 character set. The default is True
such as: Jmail.isoencodeheaders = False
Lazysend:boolean
(v3.0)
This property specifies whether JMail waits for mail to send and then returns, or buffers the message and sends it in the background.
However, if you set this property, you cannot control the error message.
Note: If this option is selected, the property serveraddress will be invalid and lazysend will determine the mail server via a DSN query.
In some settings, this may be problematic.
such as: Jmail.lazysend = true;
Log:string
(v3.0)
JMail the log created, if the Loging property is set to True
such as: Response.Write (JMAIL.LOG);
Logging:boolean
(v3.0)
Whether to use logs
such as: Jmail.logging = True
Maildomain:string
(v3.0)
This can is used to override the Ehlo/helo statement to your mailserver
such as: Jmail.maildomain = "hello.world.com"
Mimeversion:string
(v3.0)
Specifies the MIME version. The default is "1.0"
such as: Jmail.mimeversion = "1.0"
Priority:integer
(v3.0)
Priority level. Range is between 1-5
1 high priority. Some mail programs call it emergency.
2 is also high priority
3 Common Priority
4 Low-priority
5 Lowest Priority
such as: Jmail.priority = 3
Recipients:string
(v3.0)
Read-only property, returning all recipients
such as: Response.Write ("" + Jmail.recipients + "");
Replyto:string
(v3.0)
Specify an optional return address
such as: Jmail.replyto = "President@dimac.net"
Returnreceipt:boolean
(v3.0)
Specifies whether the sender needs a reply receipt. Default is False
such as: Jmail.returnreceipt = True
Sender:string
(v3.0)
Specify the sender's e-mail address
such as: Jmail.sender = "Batman@dimac.net"
Sendername:string
(v3.0)
Specify the sender's name
such as: Jmail.sendername = "Bat man"
Serveraddress:string
(v3.0)
Specifies the address of the mail server. Multiple servers can be specified, separated by a semicolon point. You can specify a port number.
If serveraddress remains blank, JMail will try to resolve the Remote mail server and send it directly to the server.
such as: Jmail.serveraddress = "mail.mydom.net;" Mail2.mydom.net:2500 "
Silent:boolean
(v3.0)
If set to True,jmail does not throw an exception error. Jmail.execute () returns TRUE or false based on the action result
such as: Jmail.silent = True
Simplelayout:boolean
(v3.0)
Set to True to reduce header headers generated by JMail
such as: Jmail.simplelayout = True
Subject:string
(v3.0)
Set the title of the message
such as: Jmail.subject = "Dimac rocks big time!"
Usepipelining:boolean
(v3.0)
Overrides if JMail should use pipelining on a server that supports it.
such as: Jmail.pipelining = False
AddAttachment (FileName, [ContentType])
(v3.0)
Add File attachment to letter
such as: Jmail.addattachment ("C:\\autoexec.bat");
Addcustomattachment (FileName, Data)
(v3.0)
Add custom attachments. This can is used to attach "virtual files" like a generated text string or
Certificate etc.
such as: Jmail.addcustomattachment ("Readme.txt", "Contents of File");
AddHeader (Xheader, Value)
(v3.0)
Add user-defined X-header to message
such as: Jmail.addheader ("Originating-ip", "193.15.14.623");
Addnativeheader (Header, Value)
(v3.0)
Add Letterhead
such as: Jmail.addnativeheader ("Mta-settings", "Route");
AddRecipient (Email)
(v3.0)
Add recipient
such as: Jmail.addrecipient ("info@dimac.net");
ADDRECIPIENTBCC (Email)
(v3.0)
Add Bcc recipients
such as: JMAIL.ADDRECIPIENTBCC ("someone@somedomain.net");
ADDRECIPIENTCC (Email)
(v3.0)
Add CC Recipients
such as: JMAIL.ADDRECIPIENTCC ("someone@somedomain.net");
Addrecipientex (Email, Name)
(v3.0)
Add a recipient with a name
such as: Jmail.addrecipientex ("Info@dimac.net", "Dimac info");
Addurlattachment (bstrURL, Bstrattachas, [Bstrauth])
(v3.0)
Download and add an attachment from the URL. The second parameter, "Attachas," is used to specify the file name after the letter is received. The 3rd optional parameter is to use the
To the optional www-identification.
such as: Jmail.addurlattachment ("Http://download.dimac.net/jmail/jmail.exe", "Jmail.exe")
Appendbodyfromfile (FileName)
(v3.0)
Append the contents of a file to the body
such as: Jmail.appendbodyfromfile ("C:\\mytext.txt");
AppendText (Text)
(v3.0)
Append the body contents of a letter
such as: Jmail.appendtext ("Text appended to Message body");
Clearattachments ()
(v3.0)
Clear Attachments List
such as: Jmail.clearattachments ();
Clearcustomheaders ()
(v3.0)
Clear all Custom Letterhead
such as: Jmail.clearcustomheaders ();
Clearrecipients ()
(v3.0)
Clear Recipient List
such as: Jmail.clearrecipients ();
Close ()
(v3.0)
Force JMail to turn off buffered connections to the mail server
such as: Jmail.close ();
Execute (): Boolean
(v3.0)
Perform a message send
such as: Jmail.execute ();
Extractemailaddressesfromurl (bstrURL, [Bstrauth])
(v3.0)
Download and add an email address from a URL
such as: Jmail.extractemailaddressesfromurl ("http://cncms.com.cn/generateEmailList.asp");
Getmessagebodyfromurl (bstrURL, [Bstrauth])
(v3.0)
Clears the body of the message and replaces it with the contents of the URL. Contenttype is automatically set to the Contentyp of the URL. Second argument (login and
Password) is optional.
such as: Jmail.getmessagebodyfromurl ("http://cncms.com.cn/", "Login:password")
Logcustommessage (Message)
(v3.0)
Add user custom messages to the JMail log. This feature works only if the property loging is set to True
such as: Jmail.logcustommessage ("Hello World");
Technical Exchange is endless