MailBee.NET Objects 7.1

Smtp.GetServerResponse Method 

Returns the last response from the server.

public string GetServerResponse();

Return Value

A string value which contains the last response from the server, or a null reference (Nothing in Visual Basic) if not connected to the server.

Exceptions

Exception Type Condition
MailBeeInvalidStateException There are multiple or non-SMTP connections being opened at the moment (IsSmtpContext is false).
MailBeeException An error occurred and ThrowExceptions is true.

See Also

Smtp Class | MailBee.SmtpMail Namespace