This commit is contained in:
杜恒 2021-05-13 17:41:21 +08:00
parent 2ae9560cfc
commit 4f0dcb44e7
4 changed files with 15 additions and 4 deletions

View File

@ -53,7 +53,8 @@ if (
Helper::options()->JCommentMailPort &&
Helper::options()->JCommentMailFromName &&
Helper::options()->JCommentMailAccount &&
Helper::options()->JCommentMailPassword
Helper::options()->JCommentMailPassword &&
Helper::options()->JCommentSMTPSecure
) {
Typecho_Plugin::factory('Widget_Feedback')->finishComment = array('Email', 'send');
}
@ -65,8 +66,8 @@ class Email
$mail = new PHPMailer();
$mail->isSMTP();
$mail->SMTPAuth = true;
$mail->SMTPSecure = 'ssl';
$mail->CharSet = 'UTF-8';
$mail->SMTPSecure = Helper::options()->JCommentSMTPSecure;
$mail->Host = Helper::options()->JCommentMailHost;
$mail->Port = Helper::options()->JCommentMailPort;
$mail->FromName = Helper::options()->JCommentMailFromName;

View File

@ -2,7 +2,7 @@
/* 获取主题当前版本号 */
function _getVersion()
{
return "6.9.3";
return "6.9.4";
};
/* 判断是否是手机 */

View File

@ -847,6 +847,16 @@ function themeConfig($form)
$JCommentMailHost->setAttribute('class', 'joe_content joe_other');
$form->addInput($JCommentMailHost->multiMode());
$JCommentSMTPSecure = new Typecho_Widget_Helper_Form_Element_Select(
'JCommentSMTPSecure',
array('ssl' => 'ssl默认', 'tsl' => 'tsl'),
'ssl',
'加密方式',
'介绍:用于选择登录鉴权加密方式'
);
$JCommentSMTPSecure->setAttribute('class', 'joe_content joe_other');
$form->addInput($JCommentSMTPSecure->multiMode());
$JCommentMailPort = new Typecho_Widget_Helper_Form_Element_Text(
'JCommentMailPort',
NULL,

View File

@ -1,6 +1,6 @@
{
"name": "typecho-joe-next",
"version": "6.9.3",
"version": "6.9.4",
"description": "A Theme Of Typecho",
"main": "index.php",
"keywords": [