no message
This commit is contained in:
parent
2853f48412
commit
f648674399
@ -40,7 +40,7 @@ final class Mail
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function getHtml($template, $ary): false|string
|
||||
public static function genHtml($template, $ary): false|string
|
||||
{
|
||||
$smarty = new Smarty();
|
||||
$smarty->setTemplateDir(BASE_PATH . '/resources/email/');
|
||||
@ -64,14 +64,14 @@ final class Mail
|
||||
*/
|
||||
public static function send($to, $subject, $template, $array = []): void
|
||||
{
|
||||
$body = self::getHtml($template, $array);
|
||||
$body = self::genHtml($template, $array);
|
||||
|
||||
self::getClient()->send($to, $subject, $body);
|
||||
}
|
||||
|
||||
public static function send_bulk($to, $subject, $template, $array = [], $oSmtp = []): void
|
||||
{
|
||||
$body = self::getHtml($template, $array);
|
||||
$body = self::genHtml($template, $array);
|
||||
|
||||
new Smtp_bulk($oSmtp)->send($to, $subject, $body);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user