Mail Object


EASendMailObj consists of two objects: IMail and IFastSender. IMail interface provides the basis of sending email. It supports CC, BCC, multiple attachments and ESMTP authentication. It fully supports asynchronous operating mode and event driving. It also provides advanced features such as embedded picture, alternative text, email digital signature and email encryption. IFastSender interface enables your application to send mass email in a threadings-pool with highest performance. Both IMail and IFastSender can send email under SSL/TLS channel.

Properties

Alias

Specifies user alias in Exchange WebDav protocol.

AltBody

Specifies alternative text/plain body of current email.

Anonymous

Specifies whether sender's address will be displayed in email

Asynchronous

Specifies the operation mode of current object.

AuthType

Specifies the type of ESMTP authentication.

AutoCalendar

Specifies the e-mail generates text/calendar body with ics attachment automatically.

BodyFormat

Specifies current email body text format.

BodyText

Specifies current email body text.

Charset

Specifies the character set in current email.

ComputerName

Domain name to send in HELO/EHLO command.

DeliveryNotification

Sets the delivery notifications for this e-mail message.

DK_PublicKey

Gets the latest DomainKeys publick key.

Drafts

Specifies the user drafts folder in Exchange WebDav protocol.

EncryptionAlgorithm

Specifies the algorithm for email encryption.

From

Specifies the display name of email sender.

FromAddr

Specifies the sender's email address.

HeaderEncoding

Sets the encoding method of email sender name, recipient name, subject and attachments' name.

KeepConnection

Specifies whether EASendMail disconnects to server after sending an email.

LocalIP

Specify the IP address of local computer to connect server.

LogFileName

Log file to record all transactions between client and server.

Protocol

Specifies the server protocol (SMTP/Exchange Web Service/Exchange WebDav).

ProxyProtocol

Specifies the proxy server protocol (socks4/socks5/http).

ReadReceipt

Request read receipt in the email message.

RecipientsCerts

Specifies the certificates of recipients to encrypt current email.

LicenseCode

License code of EASendMail Object.

ReplyTo

Reply address of current email.

ReturnPath

Specifies the email address for delivery notification report.

ServerAddr

SMTP server address, it can be IP address or domain name.

ServerPort

Listening port of SMTP server.

SignerCert

Specifies the Digital Signature of current email.

SocksProxyServer

Specifies socks4/socks5/http proxy server address.

SocksProxyPort

Specifies socks4/socks5/http proxy port.

SocksProxyUser

Specifies the user for user authentication of proxy server.

SocksProxyPassword

Specifies the password for user authentication of proxy server.

Subject

Subject of current email.

SSL_starttls

Specifies whether current connection uses STARTTLS command to enable SSL/TLS.

TransferEncoding

Specifies the encoding method of email body.

Priority

Specifies the priority level of current email.

Timeout

Specifies the timeout value in seconds.

UserName

User name for ESMTP authentication.

Password

Password for ESMTP authentication.

raw_Content

Sends an email with 100% original format.

Methods

AddAttachment

Attach a file or URL to current email.

AddAttachment1

Attach a binary stream to current email with customized file name.

AddAttachmentEx

Attach a file or URL to current email with customized file name.

AddAttachments

Attach all files in specified directory to current email.

AddHeader

Add customized header to current email.

AddInline

Add an embedded attachment file to current email.

AddInlineEx

Add an embedded attachment file to current email with customized file name.

AddRecipient

Add normal, carbon copy or blind carbon copy recipient to current email.

AddRecipientEx

Add multiple normal, carbon copy or blind carbon copy recipients to current email.

ClearAttachment

Remove all attachments from current email.

ClearHeader

Remove all customized headers from current email.

ClearInline

Remove all embedded attachments from current email.

ClearRecipient

Remove all recipients from current email.

ConvertHTML

Convert BodyText to text format and remove all html tags from message.

CreateFolder

Create a folder in local disk recursively.

DeleteFile

Delete specified file from local disk.

GetAllEmailServers

Retrieve all recipient's local SMTP server addresses via DNS lookup.

GetEmailContent

Get current email's encoded content.

GetEmailHeaders

Get text stream of current email headers.

GetEmailServer

Retrieve recipient's SMTP server address via DNS lookup.

GetLastError

Get latest error code while sending email.

GetLastErrDescription

Get latest error descriptions.

ImportHtml

Imports specified html string with embedded pictures to current email.

ImportMail

Import the content of a file or URL to BodyText.

ImportMailEx

Imports specified html file or URL with embedded pictures to current email.

LoadMessage

Load email from a *.eml file to current object.

LoadRawMessage

Load email from a *.eml file to raw_Content property and send it with 100% original format.

Reset

Reset most properties to their default values and remove all recipients, attachments.

SaveMail

Save current email to specified email file.

SaveMailEx

Save current email to IIS SMTP Service pickup path.

SetMailer

Specify x-mailer in email header.

SendMail

Send email to specified SMTP server.

SendMailToQueue

Sends an email to EASendMail Service.

SendMailToQueueEx

Sends an email to specified instant of EASendMail Service.

SSL_init

Initializes security library for SMTP SSL/TLS connection.

SSL_uninit

Unload security library for SMTP SSL/TLS connection.

Terminate

Terminate incomplete SendMail method in asynchronous mode.

TestEmailAddr

Test if an email address is valid.

Events

OnAuthenticated

Occur when ESMTP user authentication is successful.

OnClosed

Occur when the connection to server closes.

OnConnected

Occur when the client successfully connects to server.

OnError

Occur when there is an error in sending email.

OnSending

Occur when EASendMail is sending email's content to SMTP server.