Skip to content

Commit

Permalink
Fixed mail Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Emeric committed Sep 16, 2014
1 parent 4255491 commit 482c121
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Network/Email/MailTransport.php
Expand Up @@ -16,7 +16,7 @@
*/
namespace Cake\Network\Email;

use Cake\Network\Error;
use Cake\Network\Exception\SocketException;

/**
* Send mail using mail() function
Expand Down Expand Up @@ -69,7 +69,7 @@ protected function _mail($to, $subject, $message, $headers, $params = null) {
if (!@mail($to, $subject, $message, $headers, $params)) {
$error = error_get_last();
$msg = 'Could not send email: ' . (isset($error['message']) ? $error['message'] : 'unknown');
throw new Error\SocketException($msg);
throw new SocketException($msg);
}
//@codingStandardsIgnoreEnd
}
Expand Down
1 change: 0 additions & 1 deletion src/Network/Email/SmtpTransport.php
Expand Up @@ -14,7 +14,6 @@
*/
namespace Cake\Network\Email;

use Cake\Network\Error;
use Cake\Network\Socket;
use Cake\Network\Exception\SocketException;

Expand Down

0 comments on commit 482c121

Please sign in to comment.