Class Mailer
Contains helper methods concerned with sending email.
Methods summary
public static
boolean
|
#
send( array $params, boolean $auth = true )
Sends an email via standard Unix /usr/bin/sendmail.
Sends an email via standard Unix /usr/bin/sendmail.
Parameters
- $params
- Array containing the sender, receiver, and mail content details.
- $auth
- Enable authentication (only applicable for SMTP mailer type).
Returns
boolean Result TRUE if the email was successfully sent, FALSE otherwise.
|
private static
boolean
|
#
processSendmail( array $params )
Sends email via standard PHP mailer.
Sends email via standard PHP mailer.
Parameters
- $params
- Sending parameters.
Returns
boolean Result TRUE if the email was successfully sent, FALSE otherwise.
|
private static
boolean
|
#
processSmtp( array $params, boolean $auth = true )
Sends email via SMTP Mail Server.
Sends email via SMTP Mail Server.
Parameters
- $params
- Sending parameters.
- $auth
- Flag for usage of SMTP authentication or not.
Returns
boolean Result TRUE if the email was successfully sent, FALSE otherwise.
Uses
|
private static
boolean
|
#
processEmail( PHPMailer $mail, array $params )
Process email.
Parameters
- $mail
- PHPMailer object.
- $params
- Sending parameters.
Returns
boolean Result TRUE if the email was successfully sent, FALSE otherwise.
Uses
|