• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class SmtpException

The base exception type for all SMTP errors. Carries the server reply (if any) that triggered the error.

Inheritance
object
Exception
SmtpException
SmtpAuthenticationException
SmtpProtocolException
SmtpTimeoutException
Implements
ISerializable
_Exception
Inherited Members
Exception.GetBaseException()
Exception.ToString()
Exception.GetObjectData(SerializationInfo, StreamingContext)
Exception.GetType()
Exception.Message
Exception.Data
Exception.InnerException
Exception.TargetSite
Exception.StackTrace
Exception.HelpLink
Exception.Source
Exception.HResult
Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.MemberwiseClone()
Namespace: DRIT.Mail.Rfc.Smtp
Assembly: DRIT.Mail.dll
Syntax
public class SmtpException : Exception, ISerializable, _Exception

Constructors

View Source

SmtpException(string)

Initializes a new instance of the SmtpException class.

Declaration
public SmtpException(string message)
Parameters
Type Name Description
string message

The message to process.

View Source

SmtpException(string, SmtpResponse?)

Initializes a new instance of the SmtpException class with the server reply that triggered the error.

Declaration
public SmtpException(string message, SmtpResponse? response)
Parameters
Type Name Description
string message

The message to process.

SmtpResponse response

Specifies the response value.

View Source

SmtpException(string, SmtpResponse?, Exception)

Initializes a new instance of the SmtpException class with the server reply that triggered the error and an inner exception.

Declaration
public SmtpException(string message, SmtpResponse? response, Exception inner)
Parameters
Type Name Description
string message

The message to process.

SmtpResponse response

Specifies the response value.

Exception inner

Specifies the inner value.

View Source

SmtpException(string, Exception)

Initializes a new instance of the SmtpException class.

Declaration
public SmtpException(string message, Exception inner)
Parameters
Type Name Description
string message

The message to process.

Exception inner

Specifies the inner value.

Properties

View Source

Response

Gets the server reply that triggered the error, or null if the error was not caused by a server reply (e.g. a network failure).

Declaration
public SmtpResponse? Response { get; }
Property Value
Type Description
SmtpResponse

Implements

ISerializable
_Exception
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX