W3 JMailInstructions for use
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 (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 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. Default? quot;1.0 "
such as: Jmail.mimeversion = "1.0"
Priority:integer (v3.0)
priority. 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 used for 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)
such as: Jmail.close ();
execute (): Boolean (v3.0)
such as: Jmail.execute ();
extractemailaddressesfromurl (bstrURL, [Bstrauth]) (v3.0)
such as: Jmail.extractemailaddressesfromurl ("http://duplo.org/ Generateemaillist.asp ");
Getmessagebodyfromurl (bstrURL, [Bstrauth]) (v3.0)
The font color= "#666666" 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. The second parameter (login and password) is optional.
such as: Jmail.getmessagebodyfromurl ("http://duplo.org/", "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");