Smtp |
public override string Send( FormatOptions options, MimeMessage message, MailboxAddress sender, IEnumerable<MailboxAddress> recipients, CancellationToken cancellationToken = default, ITransferProgress progress = null )
| Exception | Condition |
|---|---|
| ArgumentNullException | options is . -or- message is . -or- sender is . -or- recipients is . |
| ObjectDisposedException | The SmtpClient has been disposed. |
| ServiceNotConnectedException | The SmtpClient is not connected. |
| ServiceNotAuthenticatedException | Authentication is required before sending a message. |
| InvalidOperationException | A sender has not been specified. -or- No recipients have been specified. |
| NotSupportedException | Internationalized formatting was requested but is not supported by the server. |
| OperationCanceledException | The operation has been canceled. |
| IOException | An I/O error occurred. |
| SmtpCommandException | The SMTP command failed. |
| SmtpProtocolException | An SMTP protocol exception occurred. |