Constants

UNSPECIFIED

UNSPECIFIED

SERVER_CONNECT

SERVER_CONNECT

SERVER_READERROR

SERVER_READERROR

SERVER_WRITEERROR

SERVER_WRITEERROR

DISCONNECT

DISCONNECT

MAILBOX_UNAVAILABLE

MAILBOX_UNAVAILABLE

INSUFFICIENT_STORAGE

INSUFFICIENT_STORAGE

UNKNOWN_LOCAL_USER

UNKNOWN_LOCAL_USER

OVERQUOTA

OVERQUOTA

CATEGORY_SYNTAX

CATEGORY_SYNTAX

CATEGORY_INFORMATIONAL

CATEGORY_INFORMATIONAL

CATEGORY_CONNECTIONS

CATEGORY_CONNECTIONS

CATEGORY_MAILSYSTEM

CATEGORY_MAILSYSTEM

CATEGORY_ADDRESS

CATEGORY_ADDRESS

CATEGORY_MAILBOX

CATEGORY_MAILBOX

CATEGORY_NETWORK

CATEGORY_NETWORK

CATEGORY_DELIVERY

CATEGORY_DELIVERY

CATEGORY_CONTENT

CATEGORY_CONTENT

CATEGORY_SECURITY

CATEGORY_SECURITY

LOGIN_TLSFAILURE

LOGIN_TLSFAILURE

LOGIN_AUTHENTICATIONFAILED

LOGIN_AUTHENTICATIONFAILED

LOGIN_REQUIREAUTHENTICATION

LOGIN_REQUIREAUTHENTICATION

LOGIN_MISSINGEXTENSION

LOGIN_MISSINGEXTENSION

Properties

$recipients

$recipients : array

Failed recipient list.

Type

array

$permanent

$permanent : boolean

Is this a permanent (non-transient) error? (@since 1.7.0)

Type

boolean

$raw_msg

$raw_msg : string

Raw error message from server (in English). (@since 1.4.0)

Type

string

$_enhancedcode

$_enhancedcode : string

SMTP Enhanced Mail System Status Code (see RFC 3463).

Type

string

$_rawmsg

$_rawmsg : string

Raw error message (in English).

Type

string

$_smtpcode

$_smtpcode : integer

SMTP reply code.

Type

integer

Methods

__construct()

__construct(  $message = null, \code  $code = null) 

Constructor.

Parameters

$message
\code $code

Error code.

__get()

__get(  $name) 

Parameters

$name

setSmtpCode()

setSmtpCode(integer  $smtpcode) 

Set the SMTP reply code.

Parameters

integer $smtpcode

SMTP reply code.

getSmtpCode()

getSmtpCode() : integer

Get the SMTP reply code.

Returns

integer —

Reply code.

setEnhancedSmtpCode()

setEnhancedSmtpCode(string  $code) 

Set SMTP Enhanced Mail System Status Code (RFC 3463).

Parameters

string $code

Enhanced status code.

getEnhancedSmtpCode()

getEnhancedSmtpCode() : string

Get SMTP Enhanced Mail System Status Code (RFC 3463).

Returns

string —

Enhanced status code.