改名
This commit is contained in:
@@ -200,6 +200,9 @@ class Help
|
|||||||
*/
|
*/
|
||||||
public static function sendEmail($email, string $Subject, $messageContent)
|
public static function sendEmail($email, string $Subject, $messageContent)
|
||||||
{
|
{
|
||||||
|
if (!class_exists('\Swift_Mailer')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$mailer = new \Swift_Mailer((new \Swift_SmtpTransport($email['host'], $email['port']))
|
$mailer = new \Swift_Mailer((new \Swift_SmtpTransport($email['host'], $email['port']))
|
||||||
->setUsername($email['username'])->setPassword($email['password']));
|
->setUsername($email['username'])->setPassword($email['password']));
|
||||||
$message = (new \Swift_Message($Subject))
|
$message = (new \Swift_Message($Subject))
|
||||||
|
|||||||
Reference in New Issue
Block a user