 | SmtpSendCommand(String, Boolean) Method |
Sends command to the SMTP server (e.g. "EHLO").
Namespace: Limilabs.Client.SMTPAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic SmtpResponse SendCommand(
string command,
bool throwException
)
Public Function SendCommand (
command As String,
throwException As Boolean
) As SmtpResponse
public:
SmtpResponse^ SendCommand(
String^ command,
bool throwException
)
member SendCommand :
command : string *
throwException : bool -> SmtpResponse Parameters
- command String
- Command to be send e.g. "EHLO".
- throwException Boolean
- If true throws SmtpResponseException on error response.
Return Value
SmtpResponseServer's response.
Remarks
Most commands have their own specialized methods in this class, you should probably use them instead.
See Also