Public Member Functions | |
__construct (&$xmlArr) | |
getErrorMsg () | |
useAccount ($accountName) | |
sendEmail ($TOs=null, $CCs=null, $BCCs=null, $subject, $body, $attachments=null, $isHTML=false) | |
logEmail ($result, $subject, $body=NULL, $TOs=NULL, $CCs=NULL, $BCCs=NULL) | |
Data Fields | |
$m_Accounts = null | |
Protected Member Functions | |
readMetadata (&$xmlArr) | |
Protected Attributes | |
$m_UseAccount |
Definition at line 29 of file emailService.php.
__construct | ( | &$ | xmlArr ) |
Initialize emailService with xml array metadata
array | $xmlArr |
Reimplemented from MetaObject.
Definition at line 87 of file emailService.php.
getErrorMsg | ( | ) |
logEmail | ( | $ | result, |
$ | subject, | ||
$ | body = NULL , |
||
$ | TOs = NULL , |
||
$ | CCs = NULL , |
||
$ | BCCs = NULL |
||
) |
Log that an email attemp was made. We assume it was successfull, since Zend_Mail throws an exception otherwise
string | $subject | |
array | $To | |
array | $CCs | |
array | $BCCs |
Definition at line 275 of file emailService.php.
readMetadata | ( | &$ | xmlArr ) | [protected] |
Read array meta-data, and store to meta-object
array | $xmlArr |
Reimplemented from MetaObject.
Definition at line 103 of file emailService.php.
sendEmail | ( | $ | TOs = null , |
$ | CCs = null , |
||
$ | BCCs = null , |
||
$ | subject, | ||
$ | body, | ||
$ | attachments = null , |
||
$ | isHTML = false |
||
) |
A convenience function that will issue an email based on the parameter provided Will log email attempts but will NOT run the body through a template
array | $TOs | |
array | $CCs | |
array | $BCCs | |
array | $subject | |
array | $body | |
array | $attachments | |
boolean | $isHTML |
Definition at line 188 of file emailService.php.
useAccount | ( | $ | accountName ) |
Will set the Default Transport object for the mail object based on the supplied accountname
string | $accountName |
Definition at line 142 of file emailService.php.