From 886386efc0ca4b72d1567946061c0eff7cbe45c6 Mon Sep 17 00:00:00 2001 From: carl <> Date: Mon, 13 Oct 2008 13:30:20 +0000 Subject: #822 - Not receiving emails from TEmailLogRoute --- framework/Util/TLogRouter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/Util/TLogRouter.php') diff --git a/framework/Util/TLogRouter.php b/framework/Util/TLogRouter.php index 5c755985..acaab047 100644 --- a/framework/Util/TLogRouter.php +++ b/framework/Util/TLogRouter.php @@ -509,8 +509,9 @@ class TEmailLogRoute extends TLogRoute foreach($logs as $log) $message.=$this->formatLogMessage($log[0],$log[1],$log[2],$log[3]); $message=wordwrap($message,70); + $returnPath = ini_get('sendmail_path') ? "Return-Path:{$this->_from}\r\n" : ''; foreach($this->_emails as $email) - mail($email,$this->getSubject(),$message,"From:{$this->_from}\r\n"); + mail($email,$this->getSubject(),$message,"From:{$this->_from}\r\n{$returnPath}"); } -- cgit v1.2.3