Click or drag to resize
MimeKit

IMailTransport Interface

An interface for sending messages.

Namespace:  MailKit
Assembly:  MailKit (in MailKit.dll) Version: 3.0.0
Syntax
C#
public interface IMailTransport : IMailService, 
	IDisposable

The IMailTransport type exposes the following members.

Properties
  NameDescription
Public propertyAuthenticationMechanisms
Get the authentication mechanisms supported by the message service.
(Inherited from IMailService.)
Public propertyCheckCertificateRevocation
Get or set whether connecting via SSL/TLS should check certificate revocation.
(Inherited from IMailService.)
Public propertyClientCertificates
Get or set the client SSL certificates.
(Inherited from IMailService.)
Public propertyIsAuthenticated
Get whether or not the client is currently authenticated with the mail server.
(Inherited from IMailService.)
Public propertyIsConnected
Get whether or not the service is currently connected.
(Inherited from IMailService.)
Public propertyIsEncrypted
Get whether or not the connection is encrypted (typically via SSL or TLS).
(Inherited from IMailService.)
Public propertyIsSecure
Get whether or not the connection is secure (typically via SSL or TLS).
(Inherited from IMailService.)
Public propertyIsSigned
Get whether or not the connection is signed (typically via SSL or TLS).
(Inherited from IMailService.)
Public propertyLocalEndPoint
Get or set the local IP end point to use when connecting to a remote host.
(Inherited from IMailService.)
Public propertyProxyClient
Get or set the proxy client to use when connecting to a remote host.
(Inherited from IMailService.)
Public propertyCode exampleServerCertificateValidationCallback
Get or sets a callback function to validate the server certificate.
(Inherited from IMailService.)
Public propertySslCipherAlgorithm
Get the negotiated SSL or TLS cipher algorithm.
(Inherited from IMailService.)
Public propertySslCipherStrength
Get the negotiated SSL or TLS cipher algorithm strength.
(Inherited from IMailService.)
Public propertySslHashAlgorithm
Get the negotiated SSL or TLS hash algorithm.
(Inherited from IMailService.)
Public propertySslHashStrength
Get the negotiated SSL or TLS hash algorithm strength.
(Inherited from IMailService.)
Public propertySslKeyExchangeAlgorithm
Get the negotiated SSL or TLS key exchange algorithm.
(Inherited from IMailService.)
Public propertySslKeyExchangeStrength
Get the negotiated SSL or TLS key exchange algorithm strength.
(Inherited from IMailService.)
Public propertySslProtocol
Get the negotiated SSL or TLS protocol version.
(Inherited from IMailService.)
Public propertySslProtocols
Gets or sets the set of enabled SSL and/or TLS protocol versions that the client is allowed to use.
(Inherited from IMailService.)
Public propertySyncRoot
Gets an object that can be used to synchronize access to the folder.
(Inherited from IMailService.)
Public propertyTimeout
Get or set the timeout for network streaming operations, in milliseconds.
(Inherited from IMailService.)
Top
Methods
  NameDescription
Public methodAuthenticate(ICredentials, CancellationToken)
Authenticate using the supplied credentials.
(Inherited from IMailService.)
Public methodAuthenticate(SaslMechanism, CancellationToken)
Authenticate using the specified SASL mechanism.
(Inherited from IMailService.)
Public methodAuthenticate(Encoding, ICredentials, CancellationToken)
Authenticate using the supplied credentials.
(Inherited from IMailService.)
Public methodCode exampleAuthenticate(String, String, CancellationToken)
Authenticate using the specified user name and password.
(Inherited from IMailService.)
Public methodAuthenticate(Encoding, String, String, CancellationToken)
Authenticate using the specified user name and password.
(Inherited from IMailService.)
Public methodAuthenticateAsync(ICredentials, CancellationToken)
Asynchronously authenticate using the supplied credentials.
(Inherited from IMailService.)
Public methodAuthenticateAsync(SaslMechanism, CancellationToken)
Asynchronously authenticate using the specified SASL mechanism.
(Inherited from IMailService.)
Public methodAuthenticateAsync(Encoding, ICredentials, CancellationToken)
Asynchronously authenticate using the supplied credentials.
(Inherited from IMailService.)
Public methodAuthenticateAsync(String, String, CancellationToken)
Asynchronously authenticate using the specified user name and password.
(Inherited from IMailService.)
Public methodAuthenticateAsync(Encoding, String, String, CancellationToken)
Asynchronously authenticate using the specified user name and password.
(Inherited from IMailService.)
Public methodConnect(String, Int32, SecureSocketOptions, CancellationToken)
Establish a connection to the specified mail server.
(Inherited from IMailService.)
Public methodConnect(String, Int32, Boolean, CancellationToken)
Establish a connection to the specified mail server.
(Inherited from IMailService.)
Public methodConnect(Socket, String, Int32, SecureSocketOptions, CancellationToken)
Establish a connection to the specified mail server using the provided socket.
(Inherited from IMailService.)
Public methodConnect(Stream, String, Int32, SecureSocketOptions, CancellationToken)
Establish a connection to the specified mail server using the provided stream.
(Inherited from IMailService.)
Public methodConnectAsync(String, Int32, SecureSocketOptions, CancellationToken)
Asynchronously establish a connection to the specified mail server.
(Inherited from IMailService.)
Public methodConnectAsync(String, Int32, Boolean, CancellationToken)
Asynchronously establish a connection to the specified mail server.
(Inherited from IMailService.)
Public methodConnectAsync(Socket, String, Int32, SecureSocketOptions, CancellationToken)
Asynchronously establish a connection to the specified mail server using the provided socket.
(Inherited from IMailService.)
Public methodConnectAsync(Stream, String, Int32, SecureSocketOptions, CancellationToken)
Asynchronously establish a connection to the specified mail server using the provided stream.
(Inherited from IMailService.)
Public methodDisconnect
Disconnect the service.
(Inherited from IMailService.)
Public methodDisconnectAsync
Asynchronously disconnect the service.
(Inherited from IMailService.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodNoOp
Ping the message service to keep the connection alive.
(Inherited from IMailService.)
Public methodNoOpAsync
Asynchronously ping the mail server to keep the connection alive.
(Inherited from IMailService.)
Public methodSend(MimeMessage, CancellationToken, ITransferProgress)
Send the specified message.
Public methodSend(FormatOptions, MimeMessage, CancellationToken, ITransferProgress)
Send the specified message.
Public methodSend(MimeMessage, MailboxAddress, IEnumerableMailboxAddress, CancellationToken, ITransferProgress)
Send the specified message using the supplied sender and recipients.
Public methodSend(FormatOptions, MimeMessage, MailboxAddress, IEnumerableMailboxAddress, CancellationToken, ITransferProgress)
Send the specified message using the supplied sender and recipients.
Public methodSendAsync(MimeMessage, CancellationToken, ITransferProgress)
Asynchronously send the specified message.
Public methodSendAsync(FormatOptions, MimeMessage, CancellationToken, ITransferProgress)
Asynchronously send the specified message.
Public methodSendAsync(MimeMessage, MailboxAddress, IEnumerableMailboxAddress, CancellationToken, ITransferProgress)
Asynchronously send the specified message using the supplied sender and recipients.
Public methodSendAsync(FormatOptions, MimeMessage, MailboxAddress, IEnumerableMailboxAddress, CancellationToken, ITransferProgress)
Asynchronously send the specified message using the supplied sender and recipients.
Top
Events
  NameDescription
Public eventAuthenticated
Occurs when the client has been successfully authenticated.
(Inherited from IMailService.)
Public eventConnected
Occurs when the client has been successfully connected.
(Inherited from IMailService.)
Public eventDisconnected
Occurs when the client has been disconnected.
(Inherited from IMailService.)
Public eventMessageSent
Occurs when a message is successfully sent via the transport.
Top
Remarks

An interface for sending messages.

Implemented by SmtpClient.

See Also