SMTPClient
The SMTPClient allows simple interaction with SMTP hosts with the ability to send attachements and functionality for executing bulk e-mail jobs.
Constructors
|
Constructor
|
Initializes a new instance of the SMTPClient class.
|
Methods
|
AddBCC
|
Adds a BCC entry to the message.
Arguments:
(EmailAddress)
(EmailAddress, Name)
|
|
AddCC
|
Adds a CC entry to the message.
Arguments:
(EmailAddress)
(EmailAddress, Name)
|
|
AddHeader
|
Adds a header to the message.
|
|
AddTo
|
Adds a To entry to the message.
Arguments:
(EmailAddress)
(EmailAddress, Name)
|
|
AttachFile
|
Attaches a file to the message with specified file path.
|
|
BuildContentTypeList
|
Loads ContentTypeList property with content types.
|
|
Close
|
Closes current connection to SMTP host.
|
|
CompileHeaders
|
Prepares header portion of e-mail.
|
|
CompileMessage
|
Prepares message portion of e-mail.
|
|
GetContentTypeByExtension
|
Returns the content type of the specified string.
|
|
HTMLToText
|
Returns a string containing plain text formatting and line breaks from a specified HTML string reference.
|
|
Open
|
Opens a connection to specified SMTP host.
|
|
Reset
|
Resets all object properties.
|
|
Send
|
Sends the e-mail message.
|
|
SetFrom
|
Sets From entry of the message.
Arguments:
(EmailAddress)
(EmailAddress, Name)
|
|
SetReplyTo
|
Sets the 'reply-to' header of a message.
Arguments:
(EmailAddress)
(EmailAddress, Name)
|
Properties
|
Attachments
|
Stores a list of file paths for each attachment for this instance. |
|
BCC
|
Stores a list of BCC names and e-mail addresses for this instance. |
|
CC
|
Stores a list of CC names and e-mail addresses for this instance. |
|
ContentTypeList
|
Stores a hash table with MIME content types for this instance. |
|
From
|
Gets and sets container for From name and e-mail address for this instance. |
|
Host
|
Gets and sets the host address for this instance. |
|
IsHTML
|
Gets and sets a boolean value which is used to determine if the content portion of the message contains HTML. |
|
Message
|
Gets and sets the message content for this instance. |
|
MIMEMessage
|
Stores the MIMEMessage object used in this instance. |
|
OpenedManually
|
Stores the boolean value used to determine if the the connection was opened manually. |
|
Password
|
Gets and sets the password used to authenticate with the host. |
|
Port
|
Gets and sets the port used to connect to the host. |
|
Priority
|
Gets and sets priority header value for this instance. |
|
Protocol
|
Gets and sets the protocol used to connect to the host for this instance. |
|
ReplyTo
|
Stores the reply-to header name and e-mail address for this instance. |
|
SMTPDriver
|
Stores the SMTPDriver object used to interact with the host for this instance. |
|
Subject
|
Gets and sets the subject portion of the message for this instance. |
|
Timeout
|
Gets and sets the connection timeout threshold for this instance. |
|
To
|
Stores a list of names and e-mail addresses used in the To portion of the e-mail. |
|
Username
|
Gets and sets the username used to authenticate with the host. |
|