Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

SmtpException Class

Namespace: Rebex.Net
Assembly: Rebex.Smtp.dll (version 7.0.9147)

The exception that is thrown when an error occurs while using Smtp component.

Syntax
public class SmtpException : NetworkSessionException, ISerializable
Inheritance
Object
Exception
NetworkSessionException
SmtpException
Implements
ISerializable
Inherited Members
NetworkSessionException.ProtocolCode
NetworkSessionException.ProtocolMessage
Exception.Data
Exception.GetBaseException()
Exception.GetType()
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.SerializeObjectState
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)

Constructors

Name Description
SmtpException()

Initializes a new instance of the SmtpException class.

SmtpException(SmtpResponse)

Initializes a new instance of the SmtpException class with the specified SmtpResponse.

SmtpException(String)

Initializes a new instance of the SmtpException class with the specified error message.

SmtpException(String, SmtpExceptionStatus)

Initializes a new instance of the SmtpException class with the specified error message and status.

SmtpException(String, SmtpExceptionStatus, SmtpRejectedRecipient[])

Initializes a new instance of the SmtpException class with the specified error message, status, and a list of rejected recipients.

SmtpException(String, Exception)

Initializes a new instance of the SmtpException class with the specified error message and a reference to the inner exception that is the cause of this exception.

SmtpException(String, Exception, SmtpExceptionStatus)

Initializes a new instance of the SmtpException class with the specified error message, status, and a reference to the inner exception that is the cause of this exception.

Properties

Name Description
ProtocolCode

Gets the protocol error code, if available (usually when Status is set to ProtocolError). Inherited from NetworkSessionException.

ProtocolMessage

Gets the protocol error message, if available (usually when Status is set to ProtocolError). Inherited from NetworkSessionException.

Response

Gets the SmtpResponse of the exception.

Status

Gets the status of the response.

Methods

Name Description
GetRejectedRecipients()

Gets the list of rejected recipients.

In This Article
  • Constructors
  • Properties
  • Methods
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies