diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-03-26 12:58:12 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-03-26 12:58:12 +0200 |
commit | bb2e518754e703be095df9d8fd7cb3d82a5d3bbe (patch) | |
tree | ab2ed2e5e9b9d4ef66fb30cb221c43a8ef693cdc /system/libraries | |
parent | 0336dc228c84695ec75fc8dccedac354d1556de9 (diff) | |
parent | e684bdac2d6282e3b9a5c57e1006d5ed1664f647 (diff) |
Merge upstream branch
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Email.php | 13 | ||||
-rw-r--r-- | system/libraries/Zip.php | 2 |
2 files changed, 11 insertions, 4 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php index f30fe40b6..8f383c939 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php @@ -59,6 +59,7 @@ class CI_Email { public $crlf = "\n"; // The RFC 2045 compliant CRLF for quoted-printable is "\r\n". Apparently some servers, // even on the receiving end think they need to muck with CRLFs, so using "\n", while // distasteful, is the only thing that seems to work for all environments. + public $dsn = FALSE; // Delivery Status Notification public $send_multipart = TRUE; // TRUE/FALSE - Yahoo does not like multipart alternative, so this is an override. Set to FALSE for Yahoo. public $bcc_batch_mode = FALSE; // TRUE/FALSE - Turns on/off Bcc batch feature public $bcc_batch_size = 200; // If bcc_batch_mode = TRUE, sets max number of Bccs in each batch @@ -1567,9 +1568,15 @@ class CI_Email { $resp = 250; break; case 'to' : - - $this->_send_data('RCPT TO:<'.$data.'>'); - + + if ($this->dsn) + { + $this->_send_data('RCPT TO:<'.$data.'> NOTIFY=SUCCESS,DELAY,FAILURE ORCPT=rfc822;'.$data); + } + else + { + $this->_send_data('RCPT TO:<'.$data.'>'); + } $resp = 250; break; case 'data' : diff --git a/system/libraries/Zip.php b/system/libraries/Zip.php index c9810fab9..e91e2a2ff 100644 --- a/system/libraries/Zip.php +++ b/system/libraries/Zip.php @@ -51,8 +51,8 @@ class CI_Zip { public function __construct() { - log_message('debug', 'Zip Compression Class Initialized'); $this->now = time(); + log_message('debug', 'Zip Compression Class Initialized'); } // -------------------------------------------------------------------- |