修复邮件发送乱码的问题

Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
vilson 2019-06-25 17:32:56 +08:00
parent 530b18e856
commit 1dbae08e62

View File

@ -229,6 +229,7 @@ class Login extends BasicApi
$mailer = new Mail();
try {
$mail = $mailer->mail;
$mail->CharSet = 'utf-8';
$mail->setFrom(config('mail.Username'), 'pearProject');
$mail->addAddress($email, getCurrentMember()['name']);
//Content