summaryrefslogtreecommitdiff
path: root/roundcubemail/program/lib/Net/SMTP.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-12-06 21:37:37 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-12-06 21:37:37 +0000
commita66915f63c8b263d36a18e0361176ed251e6fe9a (patch)
treee87abae049a71a59a6db36724e98ee7f1fd8e2e2 /roundcubemail/program/lib/Net/SMTP.php
parentf2529dc50da800a75bfa4d9c814125ee363115b9 (diff)
Optimized memory usage when sending mail; Include SMTP response in log; Fixed wrong header encoding
git-svn-id: https://svn.roundcube.net/trunk@399 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/lib/Net/SMTP.php')
-rw-r--r--roundcubemail/program/lib/Net/SMTP.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/program/lib/Net/SMTP.php b/roundcubemail/program/lib/Net/SMTP.php
index 4a29f4d0a..bda1494d8 100644
--- a/roundcubemail/program/lib/Net/SMTP.php
+++ b/roundcubemail/program/lib/Net/SMTP.php
@@ -760,7 +760,7 @@ class Net_SMTP
* @access public
* @since 1.0
*/
- function data($data)
+ function data(&$data)
{
/* RFC 1870, section 3, subsection 3 states "a value of zero
* indicates that no fixed maximum message size is in force".
@@ -784,7 +784,8 @@ class Net_SMTP
return $error;
}
- if (PEAR::isError($result = $this->_send($data . "\r\n.\r\n"))) {
+ $data .= "\r\n.\r\n";
+ if (PEAR::isError($result = $this->_send($data))) {
return $result;
}
if (PEAR::isError($error = $this->_parseResponse(250))) {