diff --git a/cake/libs/email/smtp_transport.php b/cake/libs/email/smtp_transport.php index e7678df7fd8..6f3a0974687 100644 --- a/cake/libs/email/smtp_transport.php +++ b/cake/libs/email/smtp_transport.php @@ -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 . '>'); } }