Skip to content
Permalink
Browse files

Fix handle unknown error in MailTransport

Fix handle unknown error in MailTransport
  • Loading branch information...
MichalWadowski committed Jul 2, 2014
1 parent d845848 commit d5bce5353600806f500a918e653e84baa6a178c8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Network/Email/MailTransport.php
@@ -68,7 +68,7 @@ protected function _mail($to, $subject, $message, $headers, $params = null) {
//@codingStandardsIgnoreStart
if (!@mail($to, $subject, $message, $headers, $params)) {
$error = error_get_last();
$msg = 'Could not send email: ' . isset($error['message']) ? $error['message'] : 'unknown';
$msg = 'Could not send email: ' . (isset($error['message']) ? $error['message'] : 'unknown');
throw new Error\SocketException($msg);
}
//@codingStandardsIgnoreEnd

0 comments on commit d5bce53

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