SmtpGetExtensionValue Method
Returns the parameters of the specified ESMTP capability, or an empty string if the capability has no parameters.

Namespace: MailBee.SmtpMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public string GetExtensionValue(
	string name
)

Parameters

name
Type: SystemString
The name of the capability. This name is case-insensitive, e.g. pipelining and PIPELINING mean the same.

Return Value

Type: String
If the specified capability is parameterless, the return value is Empty. If the capability has parameters, the return value is a string which contains the parameters list as returned by the server. If the server does not support ESMTP (see GetExtensions for more information) or the given capability is not supported, the return value is a null reference (Nothing in Visual Basic).
Exceptions
ExceptionCondition
MailBeeInvalidStateExceptionThere are multiple or non-SMTP connections being opened at the moment (IsSmtpContext is false).
MailBeeExceptionAn error occurred and ThrowExceptions is true.
Remarks

In order to use this method, the connection with the SMTP server must already be established, and Hello method already called.

This method can be used to retrieve additional information about the given capability. However, if you wish to get the list of SASL authentication methods supported by the server, you may also use GetSupportedAuthMethods method for this.

See Also