MailBee.NET Objects 4.0

MailBeeSmtpOptionalCommandNotSupportedException Class

The exception that is thrown when the SMTP server responds with a negative reply to an optional SMTP command.

For a list of all members of this type, see MailBeeSmtpOptionalCommandNotSupportedException Members.

System.Object
   System.Exception
      System.ApplicationException
         MailBee.MailBeeException
            MailBee.MailBeeNetworkException
               MailBee.MailBeeRemoteHostException
                  MailBee.MailBeeProtocolException
                     MailBee.MailBeeEmailProtocolException
                        MailBee.MailBeeEmailProtocolNegativeResponseException
                           MailBee.SmtpMail.MailBeeSmtpNegativeResponseException
                              MailBee.SmtpMail.MailBeeSmtpOptionalCommandNotSupportedException

public class MailBeeSmtpOptionalCommandNotSupportedException : MailBeeSmtpNegativeResponseException

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

This exception is never thrown in the application code. Instead, MailBee catches it, and raises ErrorOccurred event passing the exception instance as the Reason parameter value.

This exception indicates the SMTP server does not support an optional SMTP command which was sent to the server by MailBee. For instance, MailBee may try to send EHLO command in order to to initiate SMTP session and learn the server capabilities. The SMTP server, however, may not support it. In this case, MailBee continues normal execution and tries regular HELO command to initiate SMTP session (although ESMTP extensions, which could be supported if the failed command succeeded, will now be disabled). However, ErrorOccurred event is still raised to let the application code know that some features will be disabled.

Requirements

Namespace: MailBee.SmtpMail

Assembly: MailBee.NET (in MailBee.NET.dll)

See Also

MailBeeSmtpOptionalCommandNotSupportedException Members | MailBee.SmtpMail Namespace