ASPSMARTMAIL : DOCUMENTATION
aspSmartMail
Last modified : July 1st, 2004 
© 2000-2004 Advantys. All rights reserved.

SmartMail

The SmartMail object can be created within your asp programs.

Syntax
Set mySmartMail = Server.CreateObject("aspSmartMail.SmartMail")
mySmartMail.Collections | Properties | Methods

Collections

Attachments Attachments associated with the SmartMail.
Recipients Recipients associated with the SmartMail.
CCs CCs associated with the SmartMail.
BCCs BCCs associated with the SmartMail.
ReplyTos ReplyTos associated with the SmartMail.
XHeaders XHeaders associated with the SmartMail.

Properties

Body Sets the message subject.
Charset The character set.
ConfirmRead The recipients email program will send a notice back to the FromAddress confirming that this email has been read.
ContentType The ContentType property allows you to set the ContentType header of the message's BodyText.
DateTime Sets the DateTime property to a valid date/time string.
Encoding The encoding type for attachments.
Organization Sets the Organization header in the message.
Password Sets the Password for LOGIN authentication.
Priority Sets the message priority.
ReturnReceipt The recipients SMTP server will send a notice back to the SenderAddress confirming that this email has been delivered.
SenderAddress The message sender’s address.
SenderName The message sender’s name.
Server Sets the remote SMTP host that the message will be sent through.
ServerTimeOut The ServerTimeout is the maximum time that aspSmartMail should wait for a response from the mail server.
Subject Sets the message subject.
Username Sets the Username for LOGIN authentication.
XMailer Sets the X-Mailer header in the message.

Method

SendMail Attemps to send the email.

Attachments object

Syntax
Attachments.Propertie | Methods

Propertie

Count Returns the number of Attachment.

Methods

Item(ID) Returns the Attachment object with the specified ID. (default method)
Add(FilePathName[, ContentType, inLine]) Adds a new Attachment to the collection.
Clear Removes all Attachment from the collection.
Remove(Index|FilePathName) Removes an Attachment from the collection.

Attachment Object

Syntax
Attachment.Propertie

Properties

FilePathName FilePathName of the attachment.
inLine Open or attach the attached file in the email client.

Recipients, CCs, BCCs, ReplyTos objects

Syntax
Recipients, CCs, BCCs, ReplyTos.Propertie | Methods

Propertie

Count Returns the number of Recipient.

Methods

Item(ID) Returns the Recipient object with the specified ID. (default method)
Add(address[, name]) Adds a new Recipient to the collection.
Clear Removes all Recipient from the collection.
Remove(Index|address) Removes a Recipient from the collection.

Recipient, CC, BCC, ReplyTo Objects

Syntax
Recipient, CC, BCC, ReplyTo.Properties

Properties

Address Email address of the person corresponding to the Recipient.
Name Name of the person corresponding to the Recipient.

XHeaders object

Syntax
XHeaders.Propertie | Methods

Propertie

Count Returns the number of Xheader.

Methods

Item(ItemID) Returns the Xheader object with the specified ID. (default method)
Add(name, value) Adds a new Xheader to the collection.
Clear Removes all Xheader from the collection.
Remove(Index|name) Removes a Xheader from the collection.

XHeader Object

Syntax
XHeader.Properties

Properties

Name Name of the eXtra Header.
Value Value of the eXtra Header.

© 2000 Advantys. All rights reserved.