|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.
MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
public int GetMaxMessageSize()
Public Function GetMaxMessageSize As Integer
If 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.
This property value is obtained from the server capabilities list
which is received from the server during initial greeting (Hello
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.