no message

This commit is contained in:
hellcat 2026-05-06 16:57:20 +08:00
parent 2853f48412
commit f648674399

View File

@ -40,7 +40,7 @@ final class Mail
/** /**
* @throws Exception * @throws Exception
*/ */
public static function getHtml($template, $ary): false|string public static function genHtml($template, $ary): false|string
{ {
$smarty = new Smarty(); $smarty = new Smarty();
$smarty->setTemplateDir(BASE_PATH . '/resources/email/'); $smarty->setTemplateDir(BASE_PATH . '/resources/email/');
@ -64,14 +64,14 @@ final class Mail
*/ */
public static function send($to, $subject, $template, $array = []): void 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); self::getClient()->send($to, $subject, $body);
} }
public static function send_bulk($to, $subject, $template, $array = [], $oSmtp = []): void 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); new Smtp_bulk($oSmtp)->send($to, $subject, $body);
} }