The Smtp type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| Smtp |
Initializes a new instance of the Smtp object.
|
Methods
| Name | Description | |
|---|---|---|
| Close | Overloaded. | |
| CloseCommand |
Sends the Quit command. And gets server response.
(Overrides TcpTextClient..::.CloseCommand()()().) | |
| Connect | Overloaded. | |
| ConnectSSL |
Connects to SMTP server using SSL on port 465.
| |
| CreateSSLStream |
Creates SSL stream.
and authenticates client.
(Inherited from TcpTextClient.) | |
| Data | Overloaded. | |
| Dispose |
Releases all resources acquired by this object. Closes connection, without issuing any quit commands.
(Inherited from TcpTextClient.) | |
| Ehlo | Overloaded. | |
| Equals | (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.
| |
| Login | Overloaded. | |
| LoginCRAM | Overloaded. | |
| LoginOAUTH |
Logs user in using AUTH XOAUTH command. This method does NOT send the password.
You can use OAuth class to create the key.
| |
| MailFrom | Overloaded. | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| RcptTo | Overloaded. | |
| Send |
Sends the text command to server.
Adds "\r\n" to the command.
(Inherited from TcpTextClient.) | |
| SendCommand | Overloaded. | |
| SendMessage | Overloaded. | |
| SetStreams | (Inherited from TcpTextClient.) | |
| StartTLS |
Sends 'STARTTLS' command and initializes SSL connection.
| |
| ToString | (Inherited from Object.) |
Properties
| Name | Description | |
|---|---|---|
| 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
| Name | Description | |
|---|---|---|
| ServerCertificateValidate |
Event which is called for custom server validation.
(Inherited from TcpTextClient.) |