SmtpGetMaxMessageSize Method |
Returns the maximum length of the message (in bytes) which is allowed by
the SMTP server in order to accept the message from the client.
Namespace: MailBee.SmtpMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax public int GetMaxMessageSize()
Public Function GetMaxMessageSize As Integer
Return Value
Type:
Int32If the server restricts the maximum message size and supports ESMTP SIZE extension,
the return value is the maximum length of the message (in bytes) which is allowed by
the SMTP server in order to accept the message from the client; otherwise, the return value is 0.
Remarks This property value is obtained from the server capabilities list
which is received from the server during initial greeting (
Hello method).
Thus, the application must be already connected to the server and
Hello
method already called in order to use
GetMaxMessageSize method. Even then,
this method will still return zero if ESMTP SIZE extension is not supported by the server.
See Also