From 85645496ea9b84a1a3b646f7af24f4115b2696da Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Tue, 1 Mar 2011 19:14:34 -0300 Subject: [PATCH] Fixed the formation to send the emails to server, following the RFC 821. --- cake/libs/email/smtp_transport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/email/smtp_transport.php b/cake/libs/email/smtp_transport.php index e7678df7f..6f3a09746 100644 --- a/cake/libs/email/smtp_transport.php +++ b/cake/libs/email/smtp_transport.php @@ -140,14 +140,14 @@ class SmtpTransport extends AbstractTransport { */ 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 . '>'); } }