| UNA
    | 
 
  
| Public Member Functions | |
| __clone () | |
| getTemplate ($sTemplateName, $iAccountId=0) | |
| parseTemplate ($sTemplateName, $aTemplateKeys, $iAccountId=0, $iProfileId=0) | |
| parseContent ($sContent, $aKeys, $iAccountId=0, $iProfileId=0) | |
| Static Public Member Functions | |
| static | getInstance () | 
| Protected Attributes | |
| $_oEmailTemplatesQuery | |
| $iDefaultLangId | |
| $iFallbackLangId | |
| $aDefaultKeys | |
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:
| 
 | protected | 
Reimplemented from BxDolFactory.
| 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. | 
systemparse_email_templatetemplate_name - [string] by ref, name of necessary template, can be overridden in hook processingtemplate_keys - [array] by ref, key ane value pairs to replace in subject and body, can be overridden in hook processingaccount_id - [int] by ref, account ID of registered member, can be overridden in hook processingprofile_id - [int] by ref, profile ID of registered member, can be overridden in hook processingtemplate - [array] by ref, template, can be overridden in hook processing