JMail
Active Server Component reference

Methods

Description

AddAttachment FileName Adds an attachment to the mail. The attachment will automaticly be Mime/base64 encoded when the message is sent.
AppendBodyFromFile FileName Appends FileName to the body of the mail.
ClearRecipients Clears all recipients.
AppendText Text Appends Text to the body of the mail.
AddRecipient Email Adds a recipient to the message. The Email argument specifies the recipients mailbox address.
AddRecipientCC Email Same as above but adds the recipient as "Carbon Copy" (New in version 1.1)
AddRecipientBCC Email Same as above but adds the recipient as "Blind Carbon Copy" (New in version 1.1)
AddHeader XHeader, Value Adds an extra header to the message. The XHeader argument should not contain the "X-" prefix.
Execute Sends the message to the server specified by the property ServerAddress.

 

Properties Description
ServerAddress Specifies your local SMTP server.

(v2.1) If omitted Jmail will perform DNS lookup for each unique domain in the recipients list.

This is in the format of: mail.domain.com:25 where 25 specifies the port on the server. The default port is however 25 so you don't really have to specify this.

You can specify redundant servers, separating them with a semicolon (;). Jmail will attempt to deliver to each server in the list until it succeds.

ServerPort Specifies the network port to use on your SMTP server. This defaults to 25, the standard SMTP port. (This should only be set by advanced users.)

This property have no use in (v2.1)

Sender This specifies the senders email address for this message.
ie jmail.sendname = "john.doe@acme.com"
SenderName This specifies the senders name address for this message.
ie jmail.sendname = "John Doe"
Body This is the actual body of the message,
Subject Specifies the subject of the message.
ReplyTo Specifies the "ReplyTo" address of the mail. This field doesn't have to be the same as the value of Sender.
Priority This is the priority of the message. The range of priorities can be from 1 to 5.
  1. This means that the message is High Priority. Some mailers prefer to call this level "Urgent".
  2. This is also high priority.
  3. This is normal priority.
  4. This is low priority.
  5. This is the lowest priority.
ContentType This is the default charset to be used in Jmail. The default is "text/plain"
Charset This property is provied so that you can customize the content-type of the mail message. The default for this field is "US-ASCII".
Hiderecipients (v2.1) This is a textfield that if set will replace the "To:" header in the mail. Example:

If you send a message without specifying this header the All recipients of the message will show up in the message when received by the recipient.

ie Hiderecipients = "Duplo news letter"

Maildomain (v2.1) This property specifies the maildomain to be sent to the mailserver during the HELO statement. This usualy doesn't have to be set, but in certain circumstances
Lazysend (v2.1) 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't get controll of error messages etc.

By setting this ServerAddress has no meaning