The Smtp type exposes the following members.

Constructors

  NameDescription
Smtp
Initializes a new instance of the Smtp object.

Methods

  NameDescription
CloseOverloaded.
CloseCommand
Sends the Quit command. And gets server response.
(Overrides TcpTextClient..::.CloseCommand()()().)
ConnectOverloaded.
ConnectSSL
Connects to SMTP server using SSL on port 465.
CreateSSLStream
Creates SSL stream. and authenticates client.
(Inherited from TcpTextClient.)
DataOverloaded.
Dispose
Releases all resources acquired by this object. Closes connection, without issuing any quit commands.
(Inherited from TcpTextClient.)
EhloOverloaded.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetServerGreeting
Receives server's greeting.
(Overrides TcpTextClient..::.GetServerGreeting()()().)
GetStream
Gets SslStream or NetworkStream for current connection.
(Inherited from TcpTextClient.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Helo
Sends HELO to the server.
LoginOverloaded.
LoginCRAMOverloaded.
LoginOAUTH
Logs user in using AUTH XOAUTH command. This method does NOT send the password. You can use OAuth class to create the key.
MailFromOverloaded.
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
RcptToOverloaded.
Send
Sends the text command to server. Adds "\r\n" to the command.
(Inherited from TcpTextClient.)
SendCommandOverloaded.
SendMessageOverloaded.
SetStreams
Creates new Reader and Writer objects.
(Inherited from TcpTextClient.)
StartTLS
Sends 'STARTTLS' command and initializes SSL connection.
ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Connected
Gets a value indicating whether the underlying Socket for a TcpClient is connected to a remote host.
(Inherited from TcpTextClient.)
Password Obsolete.
Gets or sets the user's password.
(Inherited from TcpTextClient.)
Reader
StreamReader used for reading from network stream or SSL stream.
(Inherited from TcpTextClient.)
ReceiveTimeout
Gets or sets the amount of time a TcpClient will wait to receive data once a read operation is initiated.
(Inherited from TcpTextClient.)
SendTimeout
Gets or sets the amount of time a TcpClient will wait for a send operation to complete successfully.
(Inherited from TcpTextClient.)
SSLStream
Returns SslStream or null if SSL is not enabled.
(Inherited from TcpTextClient.)
User Obsolete.
Gets or sets the user name.
(Inherited from TcpTextClient.)
Writer
StringWriter used for writing to network stream or SSL stream.
(Inherited from TcpTextClient.)

Events

  NameDescription
ServerCertificateValidate
Event which is called for custom server validation.
(Inherited from TcpTextClient.)

See Also