This class provides methods to load, parse and send prepared email-templates. More...
Public Member Functions | |
newTemplateMsg ($templateName, $additionalHooks) | |
sendMail ($emailAddress, $subject, $msg=NULL) | |
Data Fields | |
$contents = NULL | |
The content of the message. More... | |
This class provides methods to load, parse and send prepared email-templates.
This class provides methods to load, parse and send prepared email-templates. It uses phps mail-function. The current version is configured to send emails in ISO-8859-1 encoding.
This class is largely based on the class UserCakeMail from Usercake (Version 2.0.2)
Definition at line 38 of file class.mail.php.
newTemplateMsg | ( | $templateName, | |
$additionalHooks | |||
) |
Function used for replacing hooks in our templates
string | $templateName | |
array | $additionalHooks |
Definition at line 52 of file class.mail.php.
References $mail_templates_dir, ABS_PATH, and replaceDefaultHook().
sendMail | ( | $emailAddress, | |
$subject, | |||
$msg = NULL |
|||
) |
Function for sending previously prepared message
string | $emailAddress | the email-address of the receiver |
string | $subject | the subject of the message |
string | $msg | [optional] the content of the message
|
Definition at line 87 of file class.mail.php.
References $contents, $emailAddress, and $websiteName.
$contents = NULL |