Skip to content

Commit 466f308

Browse files
author
Marius Cramer
committed
Fixed SMTP commands corresponding to RFC 2821
1 parent 9540ba4 commit 466f308

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/lib/classes/ispcmail.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,11 +697,11 @@ public function send($recipients) {
697697
$recipname = $this->_encodeHeader($recipname, $this->mail_charset);
698698

699699
//Email From
700-
fputs($this->_smtp_conn, 'MAIL FROM: ' . $this->_mail_sender . $this->_crlf);
700+
fputs($this->_smtp_conn, 'MAIL FROM: <' . $this->_mail_sender . '>' . $this->_crlf);
701701
$response = fgets($this->_smtp_conn, 515);
702702

703703
//Email To
704-
fputs($this->_smtp_conn, 'RCPT TO: ' . $recip . $this->_crlf);
704+
fputs($this->_smtp_conn, 'RCPT TO: <' . $recip . '>' . $this->_crlf);
705705
$response = fgets($this->_smtp_conn, 515);
706706

707707
//The Email

0 commit comments

Comments
 (0)