Smtp Client Methods
Methods
| Authenticate(ICredentials, CancellationToken) |
Authenticate using the supplied credentials.
(Inherited from MailService) |
| Authenticate(SaslMechanism, CancellationToken) |
Authenticate using the specified SASL mechanism.
(Overrides MailServiceAuthenticate(SaslMechanism, CancellationToken)) |
| Authenticate(Encoding, ICredentials, CancellationToken) |
Authenticate using the supplied credentials.
(Overrides MailServiceAuthenticate(Encoding, ICredentials, CancellationToken)) |
| Authenticate(String, String, CancellationToken) |
Authenticate using the specified user name and password.
(Inherited from MailService) |
| Authenticate(Encoding, String, String, CancellationToken) |
Authenticate using the specified user name and password.
(Inherited from MailService) |
| AuthenticateAsync(ICredentials, CancellationToken) |
Asynchronously authenticate using the supplied credentials.
(Inherited from MailService) |
| AuthenticateAsync(SaslMechanism, CancellationToken) |
Asynchronously authenticate using the specified SASL mechanism.
(Overrides MailServiceAuthenticateAsync(SaslMechanism, CancellationToken)) |
| AuthenticateAsync(Encoding, ICredentials, CancellationToken) |
Asynchronously authenticate using the supplied credentials.
(Overrides MailServiceAuthenticateAsync(Encoding, ICredentials, CancellationToken)) |
| AuthenticateAsync(String, String, CancellationToken) |
Asynchronously authenticate using the specified user name and password.
(Inherited from MailService) |
| AuthenticateAsync(Encoding, String, String, CancellationToken) |
Asynchronously authenticate using the specified user name and password.
(Inherited from MailService) |
| Connect(Uri, CancellationToken) |
Establish a connection to the specified mail server.
(Inherited from MailService) |
| Connect(String, Int32, Boolean, CancellationToken) |
Establish a connection to the specified mail server.
(Inherited from MailService) |
| Connect(String, Int32, SecureSocketOptions, CancellationToken) |
Establish a connection to the specified SMTP or SMTP/S server.
(Overrides MailServiceConnect(String, Int32, SecureSocketOptions, CancellationToken)) |
| Connect(Socket, String, Int32, SecureSocketOptions, CancellationToken) |
Establish a connection to the specified SMTP or SMTP/S server using the provided socket.
(Overrides MailServiceConnect(Socket, String, Int32, SecureSocketOptions, CancellationToken)) |
| Connect(Stream, String, Int32, SecureSocketOptions, CancellationToken) |
Establish a connection to the specified SMTP or SMTP/S server using the provided stream.
(Overrides MailServiceConnect(Stream, String, Int32, SecureSocketOptions, CancellationToken)) |
| ConnectAsync(Uri, CancellationToken) |
Asynchronously establish a connection to the specified mail server.
(Inherited from MailService) |
| ConnectAsync(String, Int32, Boolean, CancellationToken) |
Asynchronously establish a connection to the specified mail server.
(Inherited from MailService) |
| ConnectAsync(String, Int32, SecureSocketOptions, CancellationToken) |
Asynchronously establish a connection to the specified SMTP or SMTP/S server.
(Overrides MailServiceConnectAsync(String, Int32, SecureSocketOptions, CancellationToken)) |
| ConnectAsync(Socket, String, Int32, SecureSocketOptions, CancellationToken) |
Asynchronously establish a connection to the specified SMTP or SMTP/S server using the provided socket.
(Overrides MailServiceConnectAsync(Socket, String, Int32, SecureSocketOptions, CancellationToken)) |
| ConnectAsync(Stream, String, Int32, SecureSocketOptions, CancellationToken) |
Asynchronously establish a connection to the specified SMTP or SMTP/S server using the provided socket.
(Overrides MailServiceConnectAsync(Stream, String, Int32, SecureSocketOptions, CancellationToken)) |
| Disconnect |
Disconnect the service.
(Overrides MailServiceDisconnect(Boolean, CancellationToken)) |
| DisconnectAsync |
Asynchronously disconnect the service.
(Overrides MailServiceDisconnectAsync(Boolean, CancellationToken)) |
| Dispose |
Releases all resource used by the MailService object.
(Inherited from MailService) |
| Dispose(Boolean) |
Releases the unmanaged resources used by the SmtpClient and
optionally releases the managed resources.
(Overrides MailServiceDispose(Boolean)) |
| DisposeAsync |
Asynchronously releases all resources used by the MailService object.
(Inherited from MailService) |
| DisposeAsyncCore |
Asynchronously releases the managed resources used by the MailService.
(Inherited from MailService) |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Expand | Expand a mailing address alias. |
| ExpandAsync | Asynchronously expand a mailing address alias. |
| Finalize |
Releases unmanaged resources and performs other cleanup operations before the
MailService is reclaimed by garbage collection.
(Inherited from MailService) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetSize | Get the size of the message. |
| GetSizeAsync | Asynchronously get the size of the message. |
| GetSslClientAuthenticationOptions |
Gets the SSL/TLS client authentication options for use with .NET5's SslStream.AuthenticateAsClient() API.
(Inherited from MailService) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| NoOp |
Ping the SMTP server to keep the connection alive.
(Overrides MailServiceNoOp(CancellationToken)) |
| NoOpAsync |
Asynchronously ping the SMTP server to keep the connection alive.
(Overrides MailServiceNoOpAsync(CancellationToken)) |
| OnAuthenticated |
Raise the authenticated event.
(Inherited from MailService) |
| OnConnected |
Raise the connected event.
(Inherited from MailService) |
| OnDisconnected |
Raise the disconnected event.
(Inherited from MailService) |
| OnMessageSent |
Raise the message sent event.
(Inherited from MailTransport) |
| Prepare | Prepare the message for transport with the specified constraints. |
| Send(ISendRequest, CancellationToken) |
Send a message.
(Inherited from MailTransport) |
| Send(FormatOptions, ISendRequest, CancellationToken) |
Send a message.
(Overrides MailTransportSend(FormatOptions, ISendRequest, CancellationToken)) |
| SendAsync(ISendRequest, CancellationToken) |
Asynchronously send a message.
(Inherited from MailTransport) |
| SendAsync(FormatOptions, ISendRequest, CancellationToken) |
Asynchronously send a message.
(Overrides MailTransportSendAsync(FormatOptions, ISendRequest, CancellationToken)) |
| SendCommand | Send a custom command to the SMTP server. |
| SendCommandAsync | Asynchronously send a custom command to the SMTP server. |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Verify | Verify the existence of a mailbox address. |
| VerifyAsync | Asynchronously verify the existence of a mailbox address. |
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) |