summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcarl <>2008-10-13 13:30:20 +0000
committercarl <>2008-10-13 13:30:20 +0000
commit886386efc0ca4b72d1567946061c0eff7cbe45c6 (patch)
treeec185bd1caa3ddb86ad2addb7af97dbf71e92ca8
parent7eeb6b5a658f47b35aa99b1da80bfd5aed7e94d4 (diff)
#822 - Not receiving emails from TEmailLogRoute
-rw-r--r--HISTORY1
-rw-r--r--framework/Util/TLogRouter.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index a6b1f986..7775fb8c 100644
--- a/HISTORY
+++ b/HISTORY
@@ -1,5 +1,6 @@
Version 3.1.3 To Be Released
============================
+ENH: Ticket#822 - Not receiving emails from TEmailLogRoute (Carl)
ENH: Ticket#809 - "LIMIT 1" for ActiveRecord find() and findBy() (Carl)
BUG: Ticket#856 - Assets PRADO_CHMOD constant missing in several places (Carl)
ENH: Ticket#848 - TCache "set" and "add" with empty values (Carl)
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}");
}