修改系统发送的邮件版权信息与系统设置中的保持一致

Signed-off-by: 小胡 <3203164629@qq.com>
This commit is contained in:
小胡
2023-02-13 05:37:32 +00:00
committed by Gitee
Unverified
parent ee5c6ed618
commit 6e8f4c8248

View File

@@ -24,8 +24,9 @@ function sendmail($toemail, $subject, $message, $from = '') {
}
$message = preg_replace("/href\=\"(?!(http|https)\:\/\/)(.+?)\"/i", 'href="'.$_G['siteurl'].'\\1"', $message);
$sitename=$_G['setting']['sitename'];
$sitecopyright=replacesitevar($_G['setting']['sitecopyright']);
$sitelogo=IO::getFileUri('attach::'.$_G['setting']['sitelogo']);
$message = <<<EOT
$message = <<<EOT
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=$_G[charset]">
@@ -77,8 +78,7 @@ $message = <<<EOT
<p style="margin:auto;font-size:12px;color:#999;text-align:center;line-height:22px;">
$sitename <a href="$_G[siteurl]" target="_blank">$_G[siteurl]</a>
</p>
<p style="margin:auto;font-size:12px;color:#999;text-align:center;line-height:22px;">
Copyright &copy;2012-2022 <a href="http://www.dzzoffice.com/" target="_blank">DzzOffice</a> All Rights Reserved
<p style="margin:auto;font-size:12px;color:#999;text-align:center;line-height:22px;">$sitecopyright
<br>
</p>
</td>
@@ -304,4 +304,4 @@ function sendmail_touser($touid, $subject, $message, $mailtype='') {
return false;
}
?>
?>