奇妙伞 Good Luck To You!

解决cacti发邮件乱码的问题

vi /var/www/html/plugins/thold/thold_functions.php


/* Sends a group of graphs to a user */

function thold_mail($to, $from, $subject, $message, $filename, $headers = '') {

        global $config;

        thold_debug('Preparing to send email');

        include_once($config['base_path'] . '/plugins/settings/include/mailer.php');

        include_once($config['base_path'] . '/plugins/thold/setup.php');


        $subject = trim($subject);


        $message = str_replace('<SUBJECT>', $subject, $message);


/*增加下面一行代码*/

        $subject = "=?UTF-8?B?".base64_encode($subject)."?=";



除特别注明外,本站所有文章均为奇妙伞原创,转载请注明出处来自https://qm3.com.cn/post/297.html

留言列表
新生植发
新生植发 看看http://www.xszhifa.com/有没有多余或错误的代码  回复
发表评论
来宾的头像