summaryrefslogtreecommitdiffstats
path: root/system/libraries/Email.php
diff options
context:
space:
mode:
authorleandronf <leandronf@gmail.com>2012-03-22 03:54:26 +0100
committerleandronf <leandronf@gmail.com>2012-03-22 03:54:26 +0100
commitb455294bc404e41a65f8c9260837e76ee1cc9bda (patch)
treece7848dafc88517555f0440d1c6b272e69c0c35a /system/libraries/Email.php
parent60c9c9990f635309965929e73d0bfe52d46253ca (diff)
(DSN) Delivery status notification feature
Diffstat (limited to 'system/libraries/Email.php')
-rw-r--r--system/libraries/Email.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index f30fe40b6..d870f9782 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.
+ var $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,11 @@ 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' :