Navigation Menu

Skip to content

Commit

Permalink
Fixed the formation to send the emails to server, following the RFC 821.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Apr 13, 2011
1 parent b29c317 commit 8564549
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/libs/email/smtp_transport.php
Expand Up @@ -140,14 +140,14 @@ protected function _auth() {
*/
protected function _sendRcpt() {
$from = $this->_cakeEmail->getFrom();
$this->_smtpSend('MAIL FROM: ' . key($from));
$this->_smtpSend('MAIL FROM:<' . key($from) . '>');

$to = $this->_cakeEmail->getTo();
$cc = $this->_cakeEmail->getCc();
$bcc = $this->_cakeEmail->getBcc();
$emails = array_merge(array_keys($to), array_keys($cc), array_keys($bcc));
foreach ($emails as $email) {
$this->_smtpSend('RCPT TO: ' . $email);
$this->_smtpSend('RCPT TO:<' . $email . '>');
}
}

Expand Down

0 comments on commit 8564549

Please sign in to comment.