diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-05-09 00:16:33 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-05-09 00:16:33 +0200 |
commit | af4a8a057f7b69da2973847717d0ff9388669f54 (patch) | |
tree | 506bada5055929e58fd64aa881a357ebe564d537 /system | |
parent | 278fe0392de8f953e7dc6cc41e8bd1dd6087ed9e (diff) |
added dot transformation to body of email when sending via SMTP
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Email.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php index e0fa689b3..aa08971f9 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php @@ -1436,8 +1436,9 @@ class CI_Email { }
$this->_send_command('data');
-
- $this->_send_data($this->_header_str . $this->_finalbody);
+
+ // perform dot transformation on any lines that begin with a dot
+ $this->_send_data($this->_header_str . preg_replace('/^\./m', '..$1', $this->_finalbody));
$this->_send_data('.');
|