| w3JMail Reference |
Reference 3.7
Properties |
|
| (v3.0) |
|
The body of the message. To append text to the body use
AppendTextJMail.Body = "Hello world" |
|
|
|
|
| (v3.0) |
|
This is the charset of the message. The default is
"8859-1"JMail.Charset = "US-ASCII" |
|
|
|
|
| (v3.0) |
|
Specifies the content transfer encoding. The default is
"Quoted-Printable"JMail.ContentTransferEncoding = "base64" |
|
|
|
|
| (v3.0) |
|
This is the contentype of the message. It defaults to
"text/plain" but can be set to whatever you need. If you want
to send HTML in your messages, change this to "text/html"JMail.ContentType = "text/html" |
|
|
|
|
| (v3.0) |
|
Sets defered delivery of messages. If the mailserver
supports it the message wont be delivered before this date and time.JMail.DeferredDelivery = new Date( 2000, 02, 17 ).getVarDate(); |
|
|
|
|
| (v3.0) |
|
This can be used to change the default Attachment
encoding from base64. Valid options are "base64", "uuencode"
or "quoted-printable"JMail.Encoding = "base64" |
|
|
|
|
| (v3.0) |
|
Contains the error code if JMail.silent is set to trueResponse.Write( JMail.ErrorCode ) |
|
|
|
|
| (v3.0) |
|
Contains the error message if JMail.silent is set to trueResponse.Write( JMail.ErrorMessage ) |
|
|
|
|
| (v3.0) |
|
Contains the error source if JMail.silent is set to trueResponse.Write( JMail.ErrorSource ) |
|
|
|
|
| (v3.0) |
|
Encodes header stings according to iso-8859-1 character
sets. The default is true.JMail.ISOEncodeHeaders = false |
|
|
|
|
| (v3.0) |
|
| This property specifies if JMail is to wait until the
mail is sent and then return or if it is to buffer the message and send
it in the background. By setting this you do however don get controll of
error messages etc. NOTE: If you use this option, ServerAddress have NO function. The lazysend function will resolve the Mailserver with DNS queries. This can be a problem in some configurations. JMail.LazySend = true; |
|
|
|
|
| (v3.0) |
|
This is the log created by JMail when loging is set to
trueResponse.Write( JMail.Log ) |
|
|
|
|
| (v3.0) |
|
Enables/Disables logging in JMailJMail.Logging = true |
|
|
|
|
| (v3.0) |
|
This can be used to override the EHLO/HELO statement to
your mailserverJMail.Maildomain = "hello.world.com" |
|
|
|
|
| (v3.0) |
|
Specifies the mime version. The default is
"1.0"JMail.MimeVersion = "1.0" |
|
|
|
|
| (v3.0) |
|
This is the priority of the message. The range of
priorities can be from 1 to 5.
JMail.Priority = 3 |
|
|
|
|
| (v3.0) |
|
Readonly property of all recipients of this messageResponse.Write( "" + JMail.Recipients + "" ) |
|
|
|
|
| (v3.0) |
|
Specifies a optional reply addressJMail.ReplyTo = "president@dimac.net" |
|
|
|
|
| (v3.0) |
|
Specifies wether or not the sender requires a return
receipt. The default value of the property is "false"JMail.ReturnReceipt = true |
|
|
|
|
| (v3.0) |
|
Specifies the sender address of the messageJMail.Sender = "batman@dimac.net" |
|
|
|
|
| (v3.0) |
|
Specifies the sender name of the messageJMail.SenderName = "Bat man" |
|
|
|
|
| (v3.0) |
|
Specifies the address of the server. There can be more
than one server specified by separating the list with a semicolon. If a
port other than 25 is used then specify this by adding a colon after the
servername. If the serverAddress is left blank JMail will try to resolv
the remote Mail server and sen the message directly to that server.JMail.ServerAddress = "mail.mydom.net; mail2.mydom.net:2500" |
|
|
|
|
| (v3.0) |
|
Set to true, JMail will not trow exceptions. Instead
JMail.execute() will return true or false depending on the success of
the operationJMail.silent = true |
|
|
|
|
| (v3.0) |
|
Set to true to reduce the number of headers JMail
produces.JMail.SimpleLayout = true |
|
|
|
|
| (v3.0) |
|
Specifies the subject of the messageJMail.Subject = "Dimac rocks big time!" |
|
|
|
|
| (v3.0) |
|
Overrides if JMail should use pipelining on a server that
supports it.JMail.Pipelining = false |
|
|
|
|
Methods |
|
| (v3.0) |
|
Adds a file attachment to the mssageJMail.AddAttachment( "c:\\autoexec.bat" ); |
|
|
|
|
| (v3.0) |
|
Adds a custom attachment. This can be used to attach
"virtual files" like a generated text string or certificate
etc.JMail.AddCustomAttachment( "readme.txt", "Contents of file" ); |
|
|
|
|
| (v3.0) |
|
Adds a user defined X-header to the messageJMail.AddHeader( "Originating-IP","193.15.14.623" ); |
|
|
|
|
| (v3.0) |
|
Adds a header to the messageJMail.AddNativeHeader( "MTA-Settings", "route" ); |
|
|
|
|
| (v3.0) |
|
Adds a recipient to the messageJMail.AddRecipient( "info@dimac.net" ); |
|
|
|
|
| (v3.0) |
|
Adds a Blind Carbon Copy recipient to the messageJMail.AddRecipientBCC( "someone@somedomain.net" ); |
|
|
|
|
| (v3.0) |
|
Adds a Carbon Copy recipient to the messageJMail.AddRecipientCC( "someone@somedomain.net" ); |
|
|
|
|
| (v3.0) |
|
Adds a recipient with a name to the messageJMail.AddRecipientEx( "info@dimac.net", "Dimac INFO" ); |
|
|
|
|
| (v3.0) |
|
Downloads and adds an attachment based on an URL. A
seconds argument, "AttachAs", is used for specifying the
filename that the attachment will receive in the message. A third and
optional argument is used for optional WWW-Authentication.JMail.AddURLAttachment( "http://download.dimac.net/jmail/jmail.exe", "jmail.exe" ) |
|
|
|
|
| (v3.0) |
|
Appends body text from a fileJMail.AppendBodyFromFile( "c:\\mytext.txt" ); |
|
|
|
|
| (v3.0) |
|
Append "text" to bodyJMail.AppendText( "Text appended to message Body" ); |
|
|
|
|
| (v3.0) |
|
Clears the list of attachmentsJMail.ClearAttachments(); |
|
|
|
|
| (v3.0) |
|
Clears all custom headersJMail.ClearCustomHeaders(); |
|
|
|
|
| (v3.0) |
|
Clear the recipient listJMail.ClearRecipients(); |
|
|
|
|
| (v3.0) |
|
Force JMail to close an cached connection to a mailserver.JMail.Close(); |
|
|
|
|
| (v3.0) |
|
Executes and sends the message to the serverJMail.Execute(); |
|
|
|
|
| (v3.0) |
|
Downloads and adds email addresses from an URL.JMail.ExtractEmailAddressesFromURL( "http://duplo.org/generateEmailList.asp" ); |
|
|
|
|
| (v3.0) |
|
Clears the body of the message and replaces it with the
contents of the URL. The contenttype is automaticly set to match the
contentype of the URL. The second argument (login and password) is
optionalJMail.GetMessageBodyFromURL( "http://duplo.org/", "login:password" ) |
|
|
|
|
| (v3.0) |
|
Logs a custom user message to the JMail log. This
function works ONLY if loging is set to trueJMail.LogCustomMessage( "Hello world" ); |