mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Minor changes to two error messages.
This commit is contained in:
parent
943d928084
commit
585f1e2c31
1 changed files with 2 additions and 2 deletions
|
@ -828,7 +828,7 @@ class CakeEmail {
|
|||
$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 @@ class CakeEmail {
|
|||
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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue