PHP Class Vanilla\VanillaMailer

Inheritance: extends PHPMailer
Show file Open project: vanilla/vanilla

Public Methods

Method Description
countRecipients ( ) : integer Return the number of recipients.
getThrowExceptions ( ) : boolean Get throwExceptions value.
isServerError ( phpmailerException $e ) Check the phpmailerException message and tell us if the exception should be treated as a server error instead of a "critical" error.
setThrowExceptions ( boolean $newValue ) : VanillaMailer Set throwExceptions value.
throwExceptions ( boolean $newValue = null ) : The Either set or get the value of "throwExceptions".

Method Details

countRecipients() public method

Return the number of recipients.
public countRecipients ( ) : integer
return integer

getThrowExceptions() public method

Get throwExceptions value.
public getThrowExceptions ( ) : boolean
return boolean Is this instance set to throw exceptions or not.

isServerError() public method

Server error means that we can try to resend the email.
public isServerError ( phpmailerException $e )
$e phpmailerException

setThrowExceptions() public method

Set throwExceptions value.
public setThrowExceptions ( boolean $newValue ) : VanillaMailer
$newValue boolean The new value to set.
return VanillaMailer

throwExceptions() public method

Either set or get the value of "throwExceptions".
public throwExceptions ( boolean $newValue = null ) : The
$newValue boolean Whether this instance should throw exceptions or not
return The current value