Skip to content

Commit

Permalink
Fix missing newline between headers and body (several pear bugs).
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/Mail/trunk@221592 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Chuck Hagenbuch committed Oct 11, 2006
1 parent f83824c commit fb899e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Mail/smtp.php
Expand Up @@ -288,7 +288,7 @@ function send($recipients, $headers, $body)
}

/* 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);
Expand Down Expand Up @@ -344,4 +344,5 @@ function _error($text, &$error)

return $msg;
}

}

0 comments on commit fb899e7

Please sign in to comment.