Mail |
public abstract 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 MailTransport has been disposed. |
| ServiceNotConnectedException | The MailTransport is not connected. |
| ServiceNotAuthenticatedException | Authentication is required before sending a message. |
| InvalidOperationException | A sender has not been specified. -or- No recipients have been specified. |
| OperationCanceledException | The operation has been canceled. |
| NotSupportedException | Internationalized formatting was requested but is not supported by the transport. |
| IOException | An I/O error occurred. |
| CommandException | The send command failed. |
| ProtocolException | A protocol exception occurred. |