SmtpClient ClassIpswitch.Messaging.Framework
Provides a means to connect to an SMTP server and send email.
Inheritance Hierarchy

SystemObject
  Ipswitch.Messaging.Framework.MailSmtpClient

Namespace: Ipswitch.Messaging.Framework.Mail
Assembly: Ipswitch.Messaging.Framework (in Ipswitch.Messaging.Framework.dll) Version: 1.0.0.0
Syntax

public class SmtpClient : IDisposable

The SmtpClient type exposes the following members.

Constructors

  NameDescription
Public methodSmtpClient
Initializes a new SmtpClient with default values for Host and Port.
Public methodSmtpClient(String, Int32)
Initializes a new SmtpClient with the indicated Host and Port values.
Top
Methods

  NameDescription
Public methodDispose
Releases all unmanaged and managed resources being used.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSend
Send an email to the indicated SMTP server.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Properties

  NameDescription
Public propertyAuthenticationMethods
Gets or sets a list of SmtpAuthenticationTypes that will be used (in the order specified in the list) to authenticate against the SMTP server.
Public propertyCredentials
Gets or sets the credentials (username/password) that should be used for authentication with the SMTP server.
Public propertyHost
Gets or sets the hostname/address string to connect to.
Public propertyIdentity
Gets or sets the identity string that will be given to the SMTP server when exchanging initial greetings.
Public propertyPort
Gets or sets the port number to connect to.
Public propertyRecipients
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.
Public propertySender
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.
Public propertySslOption
Gets or sets a value that indicates how to apply SSL to the connection (if at all).
Top
See Also

Reference