This class provides messaging for the owpFramework library utilizing PHPMailer.
Methods
Constructor.
__construct()
sendEmailDirect
sendEmailDirect(array $data_array) : boolean
method |
Send email directly to the recipient's mail server using the PHPMailer library. |
access |
public |
author |
Brian Tafoya |
version |
1.0 |
Parameters
$data_array
array
Mailer data array.
Exceptions
\InvalidArgumentException |
Missing required argument |
\Exception |
Meage send failure. |
Returns
boolean
sendEmailViaSMTP()
sendEmailViaSMTP(array $data_array) : boolean
method |
Send email via mail server using the PHPMailer library. |
access |
public |
author |
Brian Tafoya |
version |
1.0 |
Parameters
$data_array
array
Mailer data array.
Exceptions
\InvalidArgumentException |
Missing required argument |
\Exception |
Meage send failure. |
Returns
boolean
sendCore()
sendCore(array $data_array, String $smtp_hostname) : boolean
method |
Core PHPMailer library. |
access |
private |
author |
Brian Tafoya |
version |
1.0 |
Parameters
$data_array
array
Mailer data array.
$smtp_hostname
String
hostname to send to.
Exceptions
\Exception |
Mail end failure. |
Returns
boolean
validateData
validateData(array $data_array) : boolean
method |
Validate the arguments used to send a message. |
access |
private |
author |
Brian Tafoya |
version |
1.0 |
Parameters
$data_array
array
Mail data to be validated.
Returns
boolean
Properties
Error array
$errors : array
The root file path.
$root_path : string