Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
Minor changes to two error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdvrooman committed Feb 19, 2012
1 parent 943d928 commit 585f1e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Network/Email/CakeEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit 585f1e2

Please sign in to comment.