分类分类
更新时间:2025-10-28 08:43:06作者:zhao
选择“HTML 邮件”保存

保存失败(0-纯文本邮件,1-HTML邮件)

解决办法:编辑/admin/mail_template.php,将$_POST[‘is_html’]修改为$_POST[‘mail_type’]
$type = intval($_POST['mail_type']);
$tpl_id = intval($_POST['tpl']);
$sql = "UPDATE " .$ecs->table('mail_templates'). " SET ".
"template_subject = '" .str_replace('''', ''', $subject). "', ".
"template_content = '" .str_replace('''', ''', $content). "', ".
"is_html = '$type', ".
"last_modify = '" .gmtime(). "' ".
"WHERE template_id='$tpl_id'";
相关