mirror of
https://github.com/osuuu/LightPicture.git
synced 2025-01-07 03:16:49 +08:00
🚑修复部分环境邮件乱码
This commit is contained in:
parent
d39f6525e9
commit
87ff1ef5ac
@ -8,9 +8,9 @@
|
||||
|
||||
|
||||
// 程序版本
|
||||
define("VERSION", "1.2.1");
|
||||
define("VERSION", "1.2.2");
|
||||
// 版本号
|
||||
define("RELRAASE_TIME", "20220226");
|
||||
define("RELRAASE_TIME", "20220227");
|
||||
// 本地存储根目录
|
||||
define("FOLDER", "LightPicture/");
|
||||
// TOKEN KEY
|
||||
|
@ -34,7 +34,7 @@ class EmailClass
|
||||
$data = SystemModel::where('type', 'email')->column('value', 'key');
|
||||
$email_template = SystemModel::where('type','email_template')->value('value');
|
||||
$mail = new PHPMailer(); //实例化PHPMailer对象
|
||||
// $mail->CharSet = 'UTF-8'; //设定邮件编码,默认ISO-8859-1,如果发中文此项必须设置,否则乱码
|
||||
$mail->CharSet = 'UTF-8'; //设定邮件编码,默认ISO-8859-1,如果发中文此项必须设置,否则乱码
|
||||
$mail->IsSMTP(); // 设定使用SMTP服务
|
||||
$mail->SMTPDebug = 0; // SMTP调试功能 0=关闭 1 = 错误和消息 2 = 消息
|
||||
$mail->SMTPAuth = true; // 启用 SMTP 验证功能
|
||||
|
Loading…
Reference in New Issue
Block a user