This documentation is archived and is not being maintained.
SmtpClient Methods
Visual Studio 2010
The SmtpClient type exposes the following members.
| Name | Description | |
|---|---|---|
|
Dispose() | Sends a QUIT message to the SMTP server, gracefully ends the TCP connection, and releases all resources used by the current instance of the SmtpClient class. |
|
Dispose(Boolean) | Sends a QUIT message to the SMTP server, gracefully ends the TCP connection, releases all resources used by the current instance of the SmtpClient class, and optionally disposes of the managed resources. |
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (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.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
OnSendCompleted | Raises the SendCompleted event. |
|
Send(MailMessage) | Sends the specified message to an SMTP server for delivery. |
|
Send(String, String, String, String) | Sends the specified e-mail message to an SMTP server for delivery. The message sender, recipients, subject, and message body are specified using String objects. |
|
SendAsync(MailMessage, Object) | Sends the specified e-mail message to an SMTP server for delivery. This method does not block the calling thread and allows the caller to pass an object to the method that is invoked when the operation completes. |
|
SendAsync(String, String, String, String, Object) | Sends an e-mail message to an SMTP server for delivery. The message sender, recipients, subject, and message body are specified using String objects. This method does not block the calling thread and allows the caller to pass an object to the method that is invoked when the operation completes. |
|
SendAsyncCancel | Cancels an asynchronous operation to send an e-mail message. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Show: