Commit 9d98599e authored by 顾文旭's avatar 顾文旭

email

parent d406622b
...@@ -74,7 +74,7 @@ class FileLog ...@@ -74,7 +74,7 @@ class FileLog
$log .= ' [debug_backtrace info: ]' . print_r(debug_backtrace(), 1); $log .= ' [debug_backtrace info: ]' . print_r(debug_backtrace(), 1);
error_log($log); error_log($log);
if (empty($mail_to)) { if (empty($mail_to)) {
$mail_to = 'bp-server@yidian-inc.com'; $mail_to = 'guwenxu@yidian-inc.com';
} }
$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";
...@@ -88,7 +88,7 @@ class FileLog ...@@ -88,7 +88,7 @@ class FileLog
} }
if (self::shouldSendEmail(md5($signature)) === true) { if (self::shouldSendEmail(md5($signature)) === true) {
foreach ($mail_to as $mail) { foreach ($mail_to as $mail) {
Email::sendMail('guwenxu@yidian-inc.com', $mail, $subject, $body); Email::sendMail('bp-noreply@yidian-inc.com', $mail, $subject, $body);
} }
} }
} }
......
...@@ -26,7 +26,7 @@ class Email ...@@ -26,7 +26,7 @@ class Email
return false; return false;
} }
if (empty($from)) { if (empty($from)) {
$from = 'guwenxu@yidian-inc.com'; $from = 'bp-noreply@yidian-inc.com';
} }
try { try {
$email = explode('@', $from); $email = explode('@', $from);
......
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