ISmtpClient Interface

An interface for an SMTP client.

Definition

Namespace: MailKit.Net.Smtp
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public interface ISmtpClient : IMailTransport, 
	IMailService, IDisposable, IAsyncDisposable
Implements
IMailService, IMailTransport, IAsyncDisposable, IDisposable

Remarks

Implemented by SmtpClient.

Properties

AuthenticationMechanisms Get the authentication mechanisms supported by the message service.
(Inherited from IMailService)
Capabilities Get the capabilities supported by the SMTP server.
CheckCertificateRevocation Get or set whether connecting via SSL/TLS should check certificate revocation.
(Inherited from IMailService)
ClientCertificates Get or set the client SSL certificates.
(Inherited from IMailService)
IsAuthenticated Get whether or not the client is currently authenticated with the mail server.
(Inherited from IMailService)
IsConnected Get whether or not the service is currently connected.
(Inherited from IMailService)
IsEncrypted Get whether or not the connection is encrypted (typically via SSL or TLS).
(Inherited from IMailService)
IsSecure Get whether or not the connection is secure (typically via SSL or TLS).
(Inherited from IMailService)
IsSigned Get whether or not the connection is signed (typically via SSL or TLS).
(Inherited from IMailService)
LocalDomain Get or set the local domain.
LocalEndPoint Get or set the local IP end point to use when connecting to a remote host.
(Inherited from IMailService)
MaxSize Get the maximum message size supported by the server.
ProxyClient Get or set the proxy client to use when connecting to a remote host.
(Inherited from IMailService)
RequireTLS Get or set whether the client should use the REQUIRETLS extension if it is available.
ServerCertificateValidationCallback Get or set a callback function to validate the server certificate.
(Inherited from IMailService)
SslCipherSuite Get the negotiated SSL or TLS cipher suite.
(Inherited from IMailService)
SslCipherSuitesPolicy Get or set the cipher suites allowed to be used when negotiating an SSL or TLS connection.
(Inherited from IMailService)
SslProtocol Get the negotiated SSL or TLS protocol version.
(Inherited from IMailService)
SslProtocols Get or set the set of enabled SSL and/or TLS protocol versions that the client is allowed to use.
(Inherited from IMailService)
SyncRoot Get an object that can be used to synchronize access to the folder.
(Inherited from IMailService)
Timeout Get or set the timeout for network streaming operations, in milliseconds.
(Inherited from IMailService)

Methods

Authenticate(ICredentials, CancellationToken) Authenticate using the supplied credentials.
(Inherited from IMailService)
Authenticate(SaslMechanism, CancellationToken) Authenticate using the specified SASL mechanism.
(Inherited from IMailService)
Authenticate(Encoding, ICredentials, CancellationToken) Authenticate using the supplied credentials.
(Inherited from IMailService)
Authenticate(String, String, CancellationToken) Authenticate using the specified user name and password.
(Inherited from IMailService)
Authenticate(Encoding, String, String, CancellationToken) Authenticate using the specified user name and password.
(Inherited from IMailService)
AuthenticateAsync(ICredentials, CancellationToken) Asynchronously authenticate using the supplied credentials.
(Inherited from IMailService)
AuthenticateAsync(SaslMechanism, CancellationToken) Asynchronously authenticate using the specified SASL mechanism.
(Inherited from IMailService)
AuthenticateAsync(Encoding, ICredentials, CancellationToken) Asynchronously authenticate using the supplied credentials.
(Inherited from IMailService)
AuthenticateAsync(String, String, CancellationToken) Asynchronously authenticate using the specified user name and password.
(Inherited from IMailService)
AuthenticateAsync(Encoding, String, String, CancellationToken) Asynchronously authenticate using the specified user name and password.
(Inherited from IMailService)
Connect(String, Int32, SecureSocketOptions, CancellationToken) Establish a connection to the specified mail server.
(Inherited from IMailService)
Connect(String, Int32, Boolean, CancellationToken) Establish a connection to the specified mail server.
(Inherited from IMailService)
Connect(Socket, String, Int32, SecureSocketOptions, CancellationToken) Establish a connection to the specified mail server using the provided socket.
(Inherited from IMailService)
Connect(Stream, String, Int32, SecureSocketOptions, CancellationToken) Establish a connection to the specified mail server using the provided stream.
(Inherited from IMailService)
ConnectAsync(String, Int32, SecureSocketOptions, CancellationToken) Asynchronously establish a connection to the specified mail server.
(Inherited from IMailService)
ConnectAsync(String, Int32, Boolean, CancellationToken) Asynchronously establish a connection to the specified mail server.
(Inherited from IMailService)
ConnectAsync(Socket, String, Int32, SecureSocketOptions, CancellationToken) Asynchronously establish a connection to the specified mail server using the provided socket.
(Inherited from IMailService)
ConnectAsync(Stream, String, Int32, SecureSocketOptions, CancellationToken) Asynchronously establish a connection to the specified mail server using the provided stream.
(Inherited from IMailService)
Disconnect Disconnect the service.
(Inherited from IMailService)
DisconnectAsync Asynchronously disconnect the service.
(Inherited from IMailService)
Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable)
DisposeAsync Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
(Inherited from IAsyncDisposable)
Expand Expand a mailing address alias.
ExpandAsync Asynchronously expand a mailing address alias.
NoOp Ping the message service to keep the connection alive.
(Inherited from IMailService)
NoOpAsync Asynchronously ping the mail server to keep the connection alive.
(Inherited from IMailService)
Send(ISendRequest, CancellationToken) Send a message.
(Inherited from IMailTransport)
Send(FormatOptions, ISendRequest, CancellationToken) Send a message.
(Inherited from IMailTransport)
SendAsync(ISendRequest, CancellationToken) Asynchronously send a message.
(Inherited from IMailTransport)
SendAsync(FormatOptions, ISendRequest, CancellationToken) Asynchronously send a message.
(Inherited from IMailTransport)
Verify Verify the existence of a mailbox address.
VerifyAsync Asynchronously verify the existence of a mailbox address.

Events

Authenticated Occurs when the client has been successfully authenticated.
(Inherited from IMailService)
Connected Occurs when the client has been successfully connected.
(Inherited from IMailService)
Disconnected Occurs when the client has been disconnected.
(Inherited from IMailService)
MessageSent Occurs when a message is successfully sent via the transport.
(Inherited from IMailTransport)

Extension Methods

Send Send the specified message.
(Defined by IMailTransportExtensions)
Send Send the specified message.
(Defined by IMailTransportExtensions)
Send Send the specified message using the supplied sender and recipients.
(Defined by IMailTransportExtensions)
Send Send the specified message using the supplied sender and recipients.
(Defined by IMailTransportExtensions)
SendAsync Asynchronously send the specified message.
(Defined by IMailTransportExtensions)
SendAsync Asynchronously send the specified message.
(Defined by IMailTransportExtensions)
SendAsync Asynchronously send the specified message using the supplied sender and recipients.
(Defined by IMailTransportExtensions)
SendAsync Asynchronously send the specified message using the supplied sender and recipients.
(Defined by IMailTransportExtensions)

See Also