lib/classes/Swift/Transport/AbstractSmtpTransport.php 1 location
|
@@ 426-439 (lines=14) @@
|
423 |
|
* |
424 |
|
* @throws Swift_TransportException |
425 |
|
*/ |
426 |
|
protected function _throwException(Swift_TransportException $e) |
427 |
|
{ |
428 |
|
$evt = $this->_eventDispatcher->createTransportExceptionEvent($this, $e); |
429 |
|
if ($evt) { |
430 |
|
|
431 |
|
$this->_eventDispatcher->dispatchEvent($evt, 'exceptionThrown'); |
432 |
|
if (!$evt->bubbleCancelled()) { |
433 |
|
throw $e; |
434 |
|
} |
435 |
|
|
436 |
|
} else { |
437 |
|
throw $e; |
438 |
|
} |
439 |
|
} |
440 |
|
|
441 |
|
/** |
442 |
|
* Throws an Exception if a response code is incorrect |
lib/classes/Swift/Transport/MailTransport.php 1 location
|
@@ 224-237 (lines=14) @@
|
221 |
|
* |
222 |
|
* @throws Swift_TransportException |
223 |
|
*/ |
224 |
|
protected function _throwException(Swift_TransportException $e) |
225 |
|
{ |
226 |
|
$evt = $this->_eventDispatcher->createTransportExceptionEvent($this, $e); |
227 |
|
if ($evt) { |
228 |
|
|
229 |
|
$this->_eventDispatcher->dispatchEvent($evt, 'exceptionThrown'); |
230 |
|
if (!$evt->bubbleCancelled()) { |
231 |
|
throw $e; |
232 |
|
} |
233 |
|
|
234 |
|
} else { |
235 |
|
throw $e; |
236 |
|
} |
237 |
|
} |
238 |
|
|
239 |
|
/** |
240 |
|
* Send mail via the mail() function. |