VuFind API Documentation

Mail extends Exception
in package

Mail Exception

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

Table of Contents

ERROR_INVALID_RECIPIENT  = 1
Mail recipient address is invalid.
ERROR_INVALID_REPLY_TO  = 3
Mail reply to address is invalid.
ERROR_INVALID_SENDER  = 2
Mail sender address is invalid.
ERROR_TOO_MANY_RECIPIENTS  = 4
Mail too many recipients.
ERROR_UNKNOWN  = 0
Default error message when the error is not known exactly.
$defaultDisplayMessage  : string
Safe error message to return
getDisplayMessage()  : string
Returns the error message, but excludes too technical messages.

Constants

ERROR_INVALID_RECIPIENT

Mail recipient address is invalid.

public int ERROR_INVALID_RECIPIENT = 1

ERROR_INVALID_REPLY_TO

Mail reply to address is invalid.

public int ERROR_INVALID_REPLY_TO = 3

ERROR_INVALID_SENDER

Mail sender address is invalid.

public int ERROR_INVALID_SENDER = 2

ERROR_TOO_MANY_RECIPIENTS

Mail too many recipients.

public int ERROR_TOO_MANY_RECIPIENTS = 4

ERROR_UNKNOWN

Default error message when the error is not known exactly.

public int ERROR_UNKNOWN = 0

Will return $defaultDisplayMessage if APPLICATION_ENV is not development.

Properties

$defaultDisplayMessage

Safe error message to return

protected string $defaultDisplayMessage = 'email_failure'

Methods

getDisplayMessage()

Returns the error message, but excludes too technical messages.

public getDisplayMessage() : string
Return values
string

Search results