cvs: pear /Mail/Mail smtp.php
| From: | Chuck Hagenbuch | Date: | Wed, 11 Oct 2006 20:18:08 +0000 |
| Subject: | cvs: pear /Mail/Mail smtp.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-42495@lists.php.net to get a copy of this message | ||
chagenbu Wed Oct 11 20:18:08 2006 UTC
Modified files:
/pear/Mail/Mail smtp.php
Log:
Fix missing newline between headers and body (several pear bugs).
http://cvs.php.net/viewvc.cgi/pear/Mail/Mail/smtp.php?r1=1.27&r2=1.28&diff_format=u
Index: pear/Mail/Mail/smtp.php
diff -u pear/Mail/Mail/smtp.php:1.27 pear/Mail/Mail/smtp.php:1.28
--- pear/Mail/Mail/smtp.php:1.27 Wed Sep 13 05:32:08 2006
+++ pear/Mail/Mail/smtp.php Wed Oct 11 20:18:08 2006
@@ -42,7 +42,7 @@
* SMTP implementation of the PEAR Mail interface. Requires the Net_SMTP class.
* @access public
* @package Mail
- * @version $Revision: 1.27 $
+ * @version $Revision: 1.28 $
*/
class Mail_smtp extends Mail {
@@ -288,7 +288,7 @@
}
/* Send the message's headers and the body as SMTP data. */
- if (PEAR::isError($res = $this->_smtp->data("$textHeaders\r\n$body"))) {
+ if (PEAR::isError($res = $this->_smtp->data($textHeaders . "\r\n\r\n" .
$body))) {
$error = $this->_error('Failed to send data', $res);
$this->_smtp->rset();
return PEAR::raiseError($error, PEAR_MAIL_SMTP_ERROR_DATA);
@@ -344,4 +344,5 @@
return $msg;
}
+
}