W3 JMAIL instructions

xiaoxiao2021-03-06  78

Jmail.smtpmail

Body: String (v3.0) letter, body, using appendtext, add content such as: jmail.body = "Hello World"

Charset: String (v3.0) character set, default is "US-ASCII" such as: jmail.charset = "US-ASCII"

ContentTransferencoding: String (v3.0) Specifies the encoding mode when content transfer, the default is "quoted-printable" such as: jmail.contentTransferenCoding = "base64"

ContentType: String (v3.0) Letter's ContentYpe. The default is "text / place", but can be set to the type you want. If you send an email in HTML format, change it to "text / html". Such as: jmail.conteType = "text / html"

DeferredDelivery: Date (v3.0) Settings Deferred Send. If the mail server supports, the message will send this time as: (JavaScript) Jmail.deferRedDelivery = New Date (2000, 02, 17) .Getvardate ();

Encoding: String (v3.0) This property can be used to change attachment encoding mode (the default is "base64). You can choose to use" Base64 "," uuencode "or" quoted-printable "such as: jmail.encoding =" Base64 "

ErrorCode: Integer (v3.0) If jmail.silent is set to true, ErrorCode contains error code such as: response.write (jmail.errorcode);

ErrorMessage: String (v3.0) If jmail.silent is set to true, the error message is included, 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) is encoded into ISO-8859-1. The default is true, such as: Jmail.isoEncodeHeaders = FALSE

Lazysend: Boolean (v3.0) This property specifies whether JMail will wait until Mail sent and return, or buffer this message and send it in the background. However, set this property, you can't control the error message. Note: If this option is selected, the property ServerAddress will be invalid. Lazysend will determine the mail server through the DSN query, which may have a problem. Such as: jmail.lazysend = true;

Log: String (v3.0) Jmail created log, 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 = truemails: string (v3.0) This Can be used to override the ehlo / helo statement to your mailver, such as: jmail.mails = "hello.mldomain =" Com "

MIMEVERSION: STRING (V3.0) Specifies the MIME version. Default? Quot; 1.0 "such as: jmail.mimeversion =" 1.0 "

Priority: Integer (v3.0) priority. Range between 1-5 1 high priority. Some mail programs are called emergency 2 is also high priority 3 normal priority 4 low priority 5 minimum priorities such as: Jmail.priority = 3

Recipients: String (v3.0) read-only properties, return all recipients such as: response.write (" Jmail. Recipients ");

Replyto: String (v3.0) Specifies an optional reply address such as: jmail.replyto = "president@dimac.net"

ReturnReceipt: Boolean (V3.0) Specifies whether the sender needs a reply receipt. The default is false such as: jmail.retReceipt = true

Sender: String (v3.0) Specifies the sender's email address, such as: jmail.sender = "Batman@dimac.net"

SenderName: String (v3.0) Specify the name of the sender, such as: jmail.sendername = "bat man"

ServerAddress: String (v3.0) Specifies the address of the mail server. You can specify multiple servers and open with a semicolon point. You can specify the port number. If ServerAddress keeps blank, Jmail will try to resolve the remote mail server and then 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 will not throw an exception error. Jmail.execute () returns true or false as: jmail.silent = true based on the results

SimpleLayout: Boolean (V3.0) Set to True, reduce the Header letterhead generated by Jmail, such as: Jmail.SIMPLELAYOUT = TRUE

Subject: String (v3.0) Setting 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 attachments to letters such as: jmail.addattachment ("c: //autoexec.bat");

AddCustomAttachment (FileName, Data) (v3.0) add custom attachments This can be used to attach "virtual files" like a generated text string or certificate etc. such as:. JMail.AddCustomAttachment ( "readme.txt", "Contents of File "); AddHeader (V3.0) Add user-defined X-header to Message such as: Jmail.Addheader (" Originating-IP "," 193.15.14.623 ");

AddnativeHeader (HEADER, VALUE) (V3.0) adds a letter such as Jmail.AddnativeHeader ("MTA-Settings", "Route");

AddRecipient (Email) (V3.0) Adds recipients such as Jmail.Addrecipient ("Info@dimac.net");

AddRecipientBCC (Email) (V3.0) Adds your prune recipients such as Jmail.AddRecipientBCC ("someone@somedomain.net");

AddRecipientCC (Email) (V3.0) Add Cc recipient as: Jmail.AddRecipientcc ("someone@somedomain.net");

AddRecipientex (Email, Name) Adds a name-mentioned recipient as: Jmail.AddRecipientex ("info@dimac.net", "Dimac Info");

Addurlattachment (BSTRURL, BSTRATTAAS, [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. 3th optional parameters It is used to optionally WWW-identification. Such as: Jmail.Addurlattachment ("http://download.dimac.net/jmail/jmail.exe", "jmail.exe")

AppendBodyFromFile (FileName) (V3.0) Add a file content to the body, such as: jmail.appendbodyfromfile ("c: //mytext.txt");

AppendText (TEXT) (V3.0) The textual content of the additional letters is as follows: Jmail.AppendText ("Text Appended to Message Body);

Clearattachments () (V3.0) Clear attachments list such as jmail.clerattachments ();

ClearcustomHeaders () (v3.0) Clear all custom letterheads such as Jmail.clearcustomHeaders ();

ClearRecipients () (V3.0) Clear the recipient list such as: jmail.clearRecipients ();

Close () () (v3.0) Forces Jmail Close Buffered and Mail Server Connections such as: jmail.close ();

Execute (): Boolean (v3.0) performs email transmission such as: jmail.execute ();

ExtractEmailAddressesFromURL (bstrURL, [bstrAuth]) (v3.0) was added from an email address and as a download url: JMail.ExtractEmailAddressesFromURL ( "http://duplo.org/generateEmailList.asp"); GetMessageBodyFromURL (bstrURL, [bstrAuth]) (v3.0) Clear the body of Message and replace it with the content of the URL. ContentType automatically sets the ContentYP of the URL. The second parameter (login and password) is optional. Such as: Jmail.getMessageBodyFromurl ("http://duplo.org/", "login: password")

LogcustomMessage (MESSAGE) (V3.0) Add user-defined messages to the JMail log. Only when the property Loging is set to TRUE, this feature can serve as: Jmail.LogcustomMessage ("Hello World");

转载请注明原文地址:https://www.9cbs.com/read-120428.html

New Post(0)