added dot transformation to body of email when sending via SMTP
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index e0fa689..aa08971 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -1436,8 +1436,9 @@
}
$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('.');