Provides a means to connect to an SMTP server and send email.
Inheritance Hierarchy
Ipswitch.Messaging.Framework.MailSmtpClient
Namespace: Ipswitch.Messaging.Framework.Mail
Assembly: Ipswitch.Messaging.Framework (in Ipswitch.Messaging.Framework.dll) Version: 1.0.0.0
Syntax
The SmtpClient type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | SmtpClient |
Initializes a new SmtpClient with default values for Host and Port.
|
![]() | SmtpClient(String, Int32) |
Initializes a new SmtpClient with the indicated Host and Port values.
|
Methods
Name | Description | |
---|---|---|
![]() | Dispose |
Releases all unmanaged and managed resources being used.
|
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Send |
Send an email to the indicated SMTP server.
|
![]() | ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
![]() | AuthenticationMethods |
Gets or sets a list of SmtpAuthenticationTypes that will be used (in the order specified in the list) to authenticate against the SMTP server.
|
![]() | Credentials |
Gets or sets the credentials (username/password) that should be used for authentication with the SMTP server.
|
![]() | Host |
Gets or sets the hostname/address string to connect to.
|
![]() | Identity |
Gets or sets the identity string that will be given to the SMTP server when exchanging initial greetings.
|
![]() | Port |
Gets or sets the port number to connect to.
|
![]() | Recipients |
Gets or sets a collection of Recipients for the message being sent to the SMTP server. This will override the value of
the To/CC/Bcc properties of the Email object being sent.
|
![]() | Sender |
Gets or sets an email address that should be used as the sender of the message being sent to the SMTP server. This will
override the value of the From property of the Email object being sent.
|
![]() | SslOption |
Gets or sets a value that indicates how to apply SSL to the connection (if at all).
|
See Also