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

Fixed SMTP commands corresponding to RFC 2821

parent 9540ba40
...@@ -697,11 +697,11 @@ class ispcmail { ...@@ -697,11 +697,11 @@ class ispcmail {
$recipname = $this->_encodeHeader($recipname, $this->mail_charset); $recipname = $this->_encodeHeader($recipname, $this->mail_charset);
//Email From //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); $response = fgets($this->_smtp_conn, 515);
//Email To //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); $response = fgets($this->_smtp_conn, 515);
//The Email //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