$translators
$translators :array
Mailer Helper Class
getApp(): \App\App
gets app object
getRouting(): \App\Site\Routing\Web
gets routing service
getUtils(): \App\Base\Tools\Utils\Globals
gets global utils service
getSiteData(): \App\Base\Tools\Utils\SiteData
gets site data service
getAssets(): \App\Base\Tools\Assets\Manager
gets assets manager
getMailer(): \App\Base\Tools\Utils\Mailer
gets mailer service
getCache(): \App\Base\Tools\Cache\Manager
get cache manager
getHtmlRenderer(): \App\Base\Tools\Utils\HtmlPartsRenderer
gets html renderer service
sendMail( $from, $to, $subject, $body,string $content_type = 'text/html',boolean $log = true): boolean
send a mail
$from | ||
$to | ||
$subject | ||
$body | ||
string | $content_type | |
boolean | $log |
sendTemplateMail(string $from,string $to,string $subject,string $mail_template,array $mail_variables = array()): boolean
send email using template
string | $from | |
string | $to | |
string | $subject | |
string | $mail_template | |
array | $mail_variables |
logMail(string $from,string $to,string $subject,integer $result,string|null $mail_template = null): \App\Site\Models\MailLog|boolean
logs mail sent
string | $from | |
string | $to | |
string | $subject | |
integer | $result | |
string|null | $mail_template |