UNA
|
Public Member Functions | |
__clone () | |
getTemplate ($sTemplateName, $iAccountId=0) | |
parseTemplate ($sTemplateName, $aTemplateKeys, $iAccountId=0, $iProfileId=0) | |
Static Public Member Functions | |
static | getInstance () |
Email templates are used to send preformated messages.
Email templates are multilingual.
User is sent email in language which is defined in their account, if account language is not set - then default site language is used.
Email templates use template system, so it is possible to customize header/footer via Studio -> Polyglot -> Emails header/footer
1-click unsubscribe link is added automatically to every email (except a few system emails, which is not supposed to unsubscribe from, like forgot password email). Please note: make sure that {unsubscribe} marker is not removed, or unsubscribe link will not be added.
Send an email using email templates:
BxDolEmailTemplates::__clone | ( | ) |
Prevent cloning the instance
|
static |
Get singleton instance of the class
Implements iBxDolSingleton.
BxDolEmailTemplates::getTemplate | ( | $sTemplateName, | |
$iAccountId = 0 |
|||
) |
Function will return array of needed template ;
string | $sTemplateName | - name of necessary template. |
integer | $iAccountId | - account ID of registered member. |
BxDolEmailTemplates::parseTemplate | ( | $sTemplateName, | |
$aTemplateKeys, | |||
$iAccountId = 0 , |
|||
$iProfileId = 0 |
|||
) |
Function will return array of needed template with neccessary markers replaced ;
string | $sTemplateName | - name of necessary template. |
string | $aTemplatekeys | - key ane value pairs to replace in subject and body. |
integer | $iAccountId | - account ID of registered member. |
integer | $iProfileId | - profile ID of registered member. |