Skip to content
Permalink
Browse files

Minor changes to two error messages.

  • Loading branch information...
cdvrooman committed Feb 19, 2012
1 parent 943d928 commit 585f1e2c3150c0dd4140ba32802bec1a2af5eb60
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Network/Email/CakeEmail.php
@@ -828,7 +828,7 @@ public function messageId($message = null) {
$this->_messageId = $message;
} else {
if (!preg_match('/^\<.+@.+\>$/', $message)) {
throw new SocketException(__d('cake_dev', 'Invalid format to Message-ID. The text should be something like "<uuid@server.com>"'));
throw new SocketException(__d('cake_dev', 'Invalid format for Message-ID. The text should be something like "<uuid@server.com>"'));
}
$this->_messageId = $message;
}
@@ -957,7 +957,7 @@ public function send($content = null) {
throw new SocketException(__d('cake_dev', 'From is not specified.'));
}
if (empty($this->_to) && empty($this->_cc) && empty($this->_bcc)) {
throw new SocketException(__d('cake_dev', 'You need specify one destination on to, cc or bcc.'));
throw new SocketException(__d('cake_dev', 'You need to specify at least one destination for to, cc or bcc.'));
}
if (is_array($content)) {

0 comments on commit 585f1e2

Please sign in to comment.
You can’t perform that action at this time.