diff --git a/src/Services/Mail.php b/src/Services/Mail.php index 4123b63ee..4e3c3a647 100755 --- a/src/Services/Mail.php +++ b/src/Services/Mail.php @@ -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); }