lib/classes/Swift/Transport/AbstractSmtpTransport.php 1 location
|
@@ 467-480 (lines=14) @@
|
| 464 |
|
* |
| 465 |
|
* @throws Swift_TransportException |
| 466 |
|
*/ |
| 467 |
|
protected function _throwException(Swift_TransportException $e) |
| 468 |
|
{ |
| 469 |
|
$evt = $this->_eventDispatcher->createTransportExceptionEvent($this, $e); |
| 470 |
|
if ($evt) { |
| 471 |
|
|
| 472 |
|
$this->_eventDispatcher->dispatchEvent($evt, 'exceptionThrown'); |
| 473 |
|
if (!$evt->bubbleCancelled()) { |
| 474 |
|
throw $e; |
| 475 |
|
} |
| 476 |
|
|
| 477 |
|
} else { |
| 478 |
|
throw $e; |
| 479 |
|
} |
| 480 |
|
} |
| 481 |
|
|
| 482 |
|
/** |
| 483 |
|
* Throws an Exception if a response code is incorrect |
lib/classes/Swift/Transport/MailTransport.php 1 location
|
@@ 249-262 (lines=14) @@
|
| 246 |
|
* |
| 247 |
|
* @throws Swift_TransportException |
| 248 |
|
*/ |
| 249 |
|
protected function _throwException(Swift_TransportException $e) |
| 250 |
|
{ |
| 251 |
|
$evt = $this->_eventDispatcher->createTransportExceptionEvent($this, $e); |
| 252 |
|
if ($evt) { |
| 253 |
|
|
| 254 |
|
$this->_eventDispatcher->dispatchEvent($evt, 'exceptionThrown'); |
| 255 |
|
if (!$evt->bubbleCancelled()) { |
| 256 |
|
throw $e; |
| 257 |
|
} |
| 258 |
|
|
| 259 |
|
} else { |
| 260 |
|
throw $e; |
| 261 |
|
} |
| 262 |
|
} |
| 263 |
|
|
| 264 |
|
/** |
| 265 |
|
* Send mail via the mail() function. |