Marius Cramer
2013-11-27 466f308b71574434f59a85e4fa6e958d2c55750c
Fixed SMTP commands corresponding to RFC 2821
1 files modified
4 ■■■■ changed files
interface/lib/classes/ispcmail.inc.php 4 ●●●● patch | view | raw | blame | history
interface/lib/classes/ispcmail.inc.php
@@ -697,11 +697,11 @@
                $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