Commit 466f308b authored by Marius Cramer's avatar Marius Cramer

Fixed SMTP commands corresponding to RFC 2821

parent 9540ba40
......@@ -697,11 +697,11 @@ class ispcmail {
$recipname = $this->_encodeHeader($recipname, $this->mail_charset);
//Email From
fputs($this->_smtp_conn, 'MAIL FROM: ' . $this->_mail_sender . $this->_crlf);
fputs($this->_smtp_conn, 'MAIL FROM: <' . $this->_mail_sender . '>' . $this->_crlf);
$response = fgets($this->_smtp_conn, 515);
//Email To
fputs($this->_smtp_conn, 'RCPT TO: ' . $recip . $this->_crlf);
fputs($this->_smtp_conn, 'RCPT TO: <' . $recip . '>' . $this->_crlf);
$response = fgets($this->_smtp_conn, 515);
//The Email
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment