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
arrayMailer 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
arrayMailer 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
arrayMailer data array.
$smtp_hostname
Stringhostname 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
arrayMail data to be validated.
Returns
boolean
Properties
Error array
$errors : array
The root file path.
$root_path : string