Permalink
Browse files

Catching mailer exceptions and logging them

  • Loading branch information...
sergeychernyshev committed Sep 29, 2016
1 parent 5ed9643 commit a2f87675a06bcf2efe8cea0d4577be5bd13ebe90
Showing with 5 additions and 1 deletion.
  1. +5 −1 classes/User.php
View
@@ -687,7 +687,11 @@ public function sendEmailVerificationCode() {
$headers = $message->getHeaders();
$headers->addTextHeader('X-Mailer', UserConfig::$supportEmailXMailer);
UserConfig::$mailer->send($message);
try {
$result = UserConfig::$mailer->send($message);
} catch (Exception $e) {
UserTools::debug($e->getMessage());
}
}
/**

0 comments on commit a2f8767

Please sign in to comment.