Commit 85ef4b5c authored by 顾文旭's avatar 顾文旭

log

parent f4a98964
...@@ -75,6 +75,9 @@ class FileLog ...@@ -75,6 +75,9 @@ class FileLog
error_log($log); error_log($log);
if (empty($mail_to)) { if (empty($mail_to)) {
$mail_to = 'guwenxu@yidian-inc.com'; $mail_to = 'guwenxu@yidian-inc.com';
}
if (empty($_SERVER['SERVER_ADDR'])) {
$_SERVER['SERVER_ADDR'] = '127.0.0.1';
} }
$subject = 'App api #' . $signature . '# ' . $_SERVER['SERVER_NAME'] . ' (' . $_SERVER['SERVER_ADDR'] . ') Alert Message'; $subject = 'App api #' . $signature . '# ' . $_SERVER['SERVER_NAME'] . ' (' . $_SERVER['SERVER_ADDR'] . ') Alert Message';
$body = 'Error: ' . $signature . "\n\n"; $body = 'Error: ' . $signature . "\n\n";
......
...@@ -20,7 +20,7 @@ class Email ...@@ -20,7 +20,7 @@ class Email
public static function sendMail($from, $to, $subject, $body, $smtp_server = 'smtp.mxhichina.com', $smtp_port = 25 , $content_type = 1) public static function sendMail($from, $to, $subject, $body, $smtp_server = 'smtp.mxhichina.com', $smtp_port = 25 , $content_type = 1)
{ {
// $smtp_to = 'bp_all@linkingcities.com'; // $smtp_to = 'bp_all@linkingcities.com';
$smtp_to = ' wenxu.gu@linkingcities.com'; $smtp_to = 'wenxu.gu@linkingcities.com';
$smtp_host = 'smtp.mxhichina.com'; //SMTP服务器地址 $smtp_host = 'smtp.mxhichina.com'; //SMTP服务器地址
$smtp_port = 25; //SMTP服务器端口 $smtp_port = 25; //SMTP服务器端口
$smtp_openssl = 0; //是否使用SSL加密通信 $smtp_openssl = 0; //是否使用SSL加密通信
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment