|
|
how
to send mail at Golemweb
|
|
| Add Electronic Mail to your Web
applications. |
+ SMTP (sending)
Messages + Plain text or HTML for the message's
body + Priority settings + Carbon Copy (CC) +
Blind Carbon Copy (BCC) + Reply-To, ConfirmReading
and ReturnReceipt + US ASCII + ContentType
headers + Custom headers + Multiple File
Attachments + MIME with
BASE64 | | Examples: how to use object
|
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. |
| 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. |
| ServerPort |
Sets port
number of the remote SMTP host. |
| ServerTimeOut |
The
ServerTimeout is the maximum time that aspSmartMail should wait
for a response from the mail server. |
| Subject |
Sets the
message subject. |
| XMailer |
Sets the
X-Mailer header in the
message. |
Method
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. |
 |