 | SmtpClientSendCommand Method |
Send a custom command to the SMTP server.
Namespace: MailKit.Net.SmtpAssembly: MailKit (in MailKit.dll) Version: 4.10.0
Syntaxprotected SmtpResponse SendCommand(
string command,
CancellationToken cancellationToken = default
)
Parameters
- command String
- The command.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
SmtpResponseThe command response.
Exceptions
RemarksSends a custom command to the SMTP server.
Note |
---|
The command string should not include the terminating \r\n sequence. |
See Also