cvs: pearweb /include/Damblan/Log Mail.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Sun, 13 Jan 2008 18:03:13 +0000 |
| Subject: | cvs: pearweb /include/Damblan/Log Mail.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-50292@lists.php.net to get a copy of this message | ||
dufuz Sun Jan 13 18:03:13 2008 UTC
Modified files:
/pearweb/include/Damblan/Log Mail.php
Log:
bounce email to constant
http://cvs.php.net/viewvc.cgi/pearweb/include/Damblan/Log/Mail.php?r1=1.7&r2=1.8&diff_format=u
Index: pearweb/include/Damblan/Log/Mail.php
diff -u pearweb/include/Damblan/Log/Mail.php:1.7 pearweb/include/Damblan/Log/Mail.php:1.8
--- pearweb/include/Damblan/Log/Mail.php:1.7 Thu Aug 17 13:09:27 2006
+++ pearweb/include/Damblan/Log/Mail.php Sun Jan 13 18:03:13 2008
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Author: Martin Jansen <mj@php.net> |
+----------------------------------------------------------------------+
- $Id: Mail.php,v 1.7 2006/08/17 13:09:27 wez Exp $
+ $Id: Mail.php,v 1.8 2008/01/13 18:03:13 dufuz Exp $
*/
require_once 'Log.php';
@@ -28,7 +28,7 @@
*
* @author Martin Jansen <mj@php.net>
* @extends Log_observer
- * @version $Revision: 1.7 $
+ * @version $Revision: 1.8 $
* @package Damblan
*/
class Damblan_Log_Mail extends Log_observer
@@ -42,7 +42,7 @@
{
$this->Log_observer();
- $this->_mailer =& Mail::factory('mail', '-f
bounce-no-user@php.net');
+ $this->_mailer =& Mail::factory('mail', '-f ' .
PEAR_BOUNCE_EMAIL);
$this->_headers['From'] = "\"PEAR System Administrators\"
<pear-sys@php.net>";
}
@@ -62,8 +62,7 @@
$ok = $this->_mailer->send($this->_recipients, $this->_headers,
$event['message']);
if ($ok === false) {
- trigger_error("Email notification routine failed.",
- E_USER_WARNING);
+ trigger_error("Email notification routine failed.", E_USER_WARNING);
}
}
@@ -104,5 +103,4 @@
{
$this->_headers[$name] = $value;
}
-}
-?>
+}
\ No newline at end of file