/**
* Invoked as a TransportException is thrown in the Transport system.
*
* @param \Swift_Events_TransportExceptionEvent $evt
* @throws \Swift_TransportException
*/
public function exceptionThrown(\Swift_Events_TransportExceptionEvent $evt)
{
$evt->cancelBubble(true);
try {
throw $evt->getException();
} catch (\Swift_TransportException $e) {
throw new MailException($e->getMessage(), 'warning');
}
}