The Smtp type exposes the following members.

Methods

  NameDescription
Public methodSupported by the .NET Compact FrameworkAbort
Aborts the current operation.
Public methodSupported by the .NET Compact FrameworkBeginConnect(String, AsyncCallback, Object)
Begins asynchronous Connect operation. Connects to the SMTP server.
Public methodSupported by the .NET Compact FrameworkBeginConnect(String, SslMode, AsyncCallback, Object)
Begins asynchronous Connect operation. Connects to the SMTP server with the specified security. Uses port 25 for no SSL, 587 for explicit SSL and 465 for implicit SSL.
Public methodSupported by the .NET Compact FrameworkBeginConnect(String, Int32, AsyncCallback, Object)
Begins asynchronous Connect operation. Connects to the SMTP server.
Public methodSupported by the .NET Compact FrameworkBeginConnect(String, Int32, SslMode, AsyncCallback, Object)
Begins asynchronous Connect operation. Connects to the SMTP server with the specified security.
Public methodSupported by the .NET Compact FrameworkBeginConnect(String, Int32, TlsParameters, SmtpSecurity, AsyncCallback, Object) Obsolete.
Public methodSupported by the .NET Compact FrameworkBeginDisconnect
Begins asynchronous Disconnect operation. Informs the server that the connection is about to close and terminates the connection.
Public methodSupported by the .NET Compact FrameworkBeginEnhancedTurn Obsolete.
Public methodSupported by the .NET Compact FrameworkBeginKeepAlive
Begins asynchronous KeepAlive operation. Sends the NOOP command to the server to keep the connection alive.
Public methodSupported by the .NET Compact FrameworkBeginLogin(GssApiProvider, AsyncCallback, Object)
Begins asynchronous Login operation. Authenticates the user to the SMTP server using the specified GSSAPI provider. Only supported on Windows and partially on Mono.
Public methodSupported by the .NET Compact FrameworkBeginLogin(SmtpAuthentication, AsyncCallback, Object)
Begins asynchronous Login operation. Authenticates the user to the SMTP server using the specified authentication method that does not require credentials (NTLM or GSSAPI). Only supported on Windows.
Public methodSupported by the .NET Compact FrameworkBeginLogin(String, SmtpAuthentication, AsyncCallback, Object)
Begins asynchronous Login operation. Authenticates the user to the SMTP server using an OAuth token.
Public methodSupported by the .NET Compact FrameworkBeginLogin(String, String, AsyncCallback, Object)
Begins asynchronous Login operation. Authenticates the user to the SMTP server.
Public methodSupported by the .NET Compact FrameworkBeginLogin(String, String, SmtpAuthentication, AsyncCallback, Object)
Begins asynchronous Login operation. Authenticates the user to the SMTP server using the specified authentication method.
Public methodSupported by the .NET Compact FrameworkBeginReadResponse
Begins asynchronous ReadResponse operation. Returns the response of the SMTP server to the command.
Public methodSupported by the .NET Compact FrameworkBeginSecure(AsyncCallback, Object)
Begins asynchronous Secure operation. Secures the connection with TLS/SSL using default parameters.
Public methodSupported by the .NET Compact FrameworkBeginSecure(TlsParameters, AsyncCallback, Object) Obsolete.
Public methodSupported by the .NET Compact FrameworkBeginSend(Stream, AsyncCallback, Object)
Begins asynchronous Send operation. Reads and sends a mail message from the specified stream in MIME format.
Public methodSupported by the .NET Compact FrameworkBeginSend(String, AsyncCallback, Object)
Begins asynchronous Send operation. Reads and sends a mail message from the specified local file in MIME format.
Public methodSupported by the .NET Compact FrameworkBeginSend(MailMessage, AsyncCallback, Object)
Begins asynchronous Send operation. Sends a mail message (MailMessage).
Public methodSupported by the .NET Compact FrameworkBeginSend(MimeMessage, AsyncCallback, Object)
Begins asynchronous Send operation. Sends a mail message (MimeMessage).
Public methodSupported by the .NET Compact FrameworkBeginSend(Stream, String, String, AsyncCallback, Object)
Begins asynchronous Send operation. Reads and sends a mail message from the specified stream in MIME format.
Public methodSupported by the .NET Compact FrameworkBeginSend(String, String, String, AsyncCallback, Object)
Begins asynchronous Send operation. Reads and sends a mail message from the specified local file in MIME format.
Public methodSupported by the .NET Compact FrameworkBeginSend(MailMessage, String, String, AsyncCallback, Object)
Begins asynchronous Send operation. Sends a mail message (MailMessage).
Public methodSupported by the .NET Compact FrameworkBeginSend(MimeMessage, String, String, AsyncCallback, Object)
Begins asynchronous Send operation. Sends a mail message (MimeMessage).
Public methodSupported by the .NET Compact FrameworkBeginSend(String, String, String, String, AsyncCallback, Object)
Begins asynchronous Send operation. Sends a mail message constructed from the specified parameters.
Public methodSupported by the .NET Compact FrameworkBeginSendCommand
Begins asynchronous SendCommand operation. Executes a command on the SMTP server.
Public methodSupported by the .NET Compact FrameworkBeginVerify Obsolete.
Public methodSupported by the .NET Compact FrameworkConnect(String)
Connects to the SMTP server.
Public methodSupported by the .NET Compact FrameworkConnect(String, SslMode)
Connects to the SMTP server with the specified security. Uses port 25 for no SSL, 587 for explicit SSL and 465 for implicit SSL.
Public methodSupported by the .NET Compact FrameworkConnect(String, Int32)
Connects to the SMTP server.
Public methodSupported by the .NET Compact FrameworkConnect(String, Int32, SslMode)
Connects to the SMTP server with the specified security.
Public methodSupported by the .NET Compact FrameworkConnect(String, Int32, TlsParameters, SmtpSecurity) Obsolete.
Public methodSupported by the .NET Compact FrameworkDisconnect
Informs the server that the connection is about to close and terminates the connection.
Public methodSupported by the .NET Compact FrameworkDispose()()()()
Disposes the Smtp object and all the socket objects.
Protected methodSupported by the .NET Compact FrameworkDispose(Boolean)
Releases the unmanaged resources used by the Smtp and optionally releases the managed resources.
Public methodSupported by the .NET Compact FrameworkEndConnect
Ends an asynchronous BeginConnect operation.
Public methodSupported by the .NET Compact FrameworkEndDisconnect
Ends an asynchronous BeginDisconnect operation.
Public methodSupported by the .NET Compact FrameworkEndEnhancedTurn Obsolete.
Public methodSupported by the .NET Compact FrameworkEndKeepAlive
Ends an asynchronous BeginKeepAlive operation.
Public methodSupported by the .NET Compact FrameworkEndLogin
Ends an asynchronous BeginLogin operation.
Public methodSupported by the .NET Compact FrameworkEndReadResponse
Ends an asynchronous BeginReadResponse operation.
Public methodSupported by the .NET Compact FrameworkEndSecure
Ends an asynchronous BeginSecure operation.
Public methodSupported by the .NET Compact FrameworkEndSend
Ends an asynchronous BeginSend operation.
Public methodSupported by the .NET Compact FrameworkEndSendCommand
Ends an asynchronous BeginSendCommand operation.
Public methodSupported by the .NET Compact FrameworkEndVerify Obsolete.
Public methodSupported by the .NET Compact FrameworkEnhancedTurn Obsolete.
Public methodSupported by the .NET Compact FrameworkEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkFinalize
Finalizer. Called by garbage collector during object destruction.
(Overrides Object..::..Finalize()()()().)
Public methodSupported by the .NET Compact FrameworkGetConnectionState
Checks whether the SMTP session is still connected and returns its state.
Public methodSupported by the .NET Compact FrameworkGetHashCode
Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetSupportedAuthenticationMethods
Gets the list of supported authentication methods.
Public methodSupported by the .NET Compact FrameworkGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkCheckConnectionState
Checks whether the SMTP session is still connected. Throws an exception on error.
Public methodSupported by the .NET Compact FrameworkKeepAlive
Sends the NOOP command to the server to keep the connection alive.
Public methodSupported by the .NET Compact FrameworkLogin(GssApiProvider)
Authenticates the user to the SMTP server using the specified GSSAPI provider. Only supported on Windows and partially on Mono.
Public methodSupported by the .NET Compact FrameworkLogin(SmtpAuthentication)
Authenticates the user to the SMTP server using the specified authentication method that does not require credentials (NTLM or GSSAPI). Only supported on Windows.
Public methodSupported by the .NET Compact FrameworkLogin(String, SmtpAuthentication)
Authenticates the user to the SMTP server using an OAuth token.
Public methodSupported by the .NET Compact FrameworkLogin(String, String)
Authenticates the user to the SMTP server.
Public methodSupported by the .NET Compact FrameworkLogin(String, String, SmtpAuthentication)
Authenticates the user to the SMTP server using the specified authentication method.
Protected methodSupported by the .NET Compact FrameworkMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkOnCommandSent
Raises the CommandSent event.
Protected methodSupported by the .NET Compact FrameworkOnResponseRead
Raises the ResponseRead event.
Protected methodSupported by the .NET Compact FrameworkOnStateChanged
Raises the StateChanged event.
Protected methodSupported by the .NET Compact FrameworkOnTlsDebug Obsolete.
Protected methodSupported by the .NET Compact FrameworkOnTransferProgress
Raises the TransferProgress event.
Public methodSupported by the .NET Compact FrameworkReadResponse
Returns the response of the SMTP server to the command.
Public methodStatic memberSupported by the .NET Compact FrameworkResolveDomainMX(String)
Retrieves the list of domain's MX records from DNS and returns the list of hosts that accept its email (in order of preference).
Public methodStatic memberSupported by the .NET Compact FrameworkResolveDomainMX(String, Int32)
Retrieves the list of domain's MX records from DNS and returns the list of hosts that accept its email (in order of preference).
Public methodSupported by the .NET Compact FrameworkSecure()()()()
Secures the connection with TLS/SSL using default parameters.
Public methodSupported by the .NET Compact FrameworkSecure(TlsParameters) Obsolete.
Public methodSupported by the .NET Compact FrameworkSend(Stream)
Reads and sends a mail message from the specified stream in MIME format.
Public methodSupported by the .NET Compact FrameworkSend(String)
Reads and sends a mail message from the specified local file in MIME format.
Public methodSupported by the .NET Compact FrameworkSend(MailMessage)
Sends a mail message (MailMessage).
Public methodSupported by the .NET Compact FrameworkSend(MimeMessage)
Sends a mail message (MimeMessage).
Public methodStatic memberSupported by the .NET Compact FrameworkSend(String, SmtpConfiguration)
Reads a mail message from the specified local file in MIME format and sends it using the specified SMTP server.
Public methodStatic memberSupported by the .NET Compact FrameworkSend(String, String)
Reads a mail message from the specified local file in MIME format and sends it using the specified SMTP server.
Public methodStatic memberSupported by the .NET Compact FrameworkSend(MailMessage, SmtpConfiguration)
Sends the message using the specified SMTP server.
Public methodStatic memberSupported by the .NET Compact FrameworkSend(MailMessage, String)
Sends the message using the specified SMTP server.
Public methodStatic memberSupported by the .NET Compact FrameworkSend(MimeMessage, SmtpConfiguration)
Sends the message using the specified SMTP server.
Public methodStatic memberSupported by the .NET Compact FrameworkSend(MimeMessage, String)
Sends the message using the specified SMTP server.
Public methodSupported by the .NET Compact FrameworkSend(Stream, String, String)
Reads and sends a mail message from the specified stream in MIME format.
Public methodStatic memberSupported by the .NET Compact FrameworkSend(String, String, Int32)
Reads a mail message from the specified local file in MIME format and sends it using the specified SMTP server.
Public methodSupported by the .NET Compact FrameworkSend(String, String, String)
Reads and sends a mail message from the specified local file in MIME format.
Public methodStatic memberSupported by the .NET Compact FrameworkSend(MailMessage, String, Int32)
Sends the message using the specified SMTP server.
Public methodSupported by the .NET Compact FrameworkSend(MailMessage, String, String)
Sends a mail message (MailMessage).
Public methodStatic memberSupported by the .NET Compact FrameworkSend(MimeMessage, String, Int32)
Sends the message using the specified SMTP server.
Public methodSupported by the .NET Compact FrameworkSend(MimeMessage, String, String)
Sends a mail message (MimeMessage).
Public methodSupported by the .NET Compact FrameworkSend(String, String, String, String)
Sends a mail message constructed from the specified parameters.
Public methodStatic memberSupported by the .NET Compact FrameworkSend(String, String, String, String, SmtpConfiguration)
Sends a mail message constructed from the specified parameters using the specified SMTP server.
Public methodStatic memberSupported by the .NET Compact FrameworkSend(String, String, String, String, String)
Sends a mail message constructed from the specified parameters using the specified SMTP server.
Public methodStatic memberSupported by the .NET Compact FrameworkSend(String, String, String, String, String, Int32)
Sends a mail message constructed from the specified parameters using the specified SMTP server.
Public methodSupported by the .NET Compact FrameworkSendCommand
Executes a command on the SMTP server.
Public methodStatic memberSupported by the .NET Compact FrameworkSendDirect(MailMessage)
Sends the message by submitting the message directly to the recipients' SMTP servers.
Public methodStatic memberSupported by the .NET Compact FrameworkSendDirect(MimeMessage)
Sends the message by submitting the message directly to the recipients' SMTP servers.
Public methodStatic memberSupported by the .NET Compact FrameworkSendDirect(String, String, String, String)
Sends a mail message constructed from the specified parameters by submitting it directly to the recipients' SMTP servers.
Public methodSupported by the .NET Compact FrameworkSetSocketFactory
Sets the socket factory to be used to create communication sockets.
Public methodSupported by the .NET Compact FrameworkToString
Returns a string representation of this object.
(Overrides Object..::..ToString()()()().)
Public methodSupported by the .NET Compact FrameworkVerify Obsolete.

See Also