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
|
@@ 222-235 (lines=14) @@
|
| 219 |
|
* |
| 220 |
|
* @throws Swift_TransportException |
| 221 |
|
*/ |
| 222 |
|
protected function _throwException(Swift_TransportException $e) |
| 223 |
|
{ |
| 224 |
|
$evt = $this->_eventDispatcher->createTransportExceptionEvent($this, $e); |
| 225 |
|
if ($evt) { |
| 226 |
|
|
| 227 |
|
$this->_eventDispatcher->dispatchEvent($evt, 'exceptionThrown'); |
| 228 |
|
if (!$evt->bubbleCancelled()) { |
| 229 |
|
throw $e; |
| 230 |
|
} |
| 231 |
|
|
| 232 |
|
} else { |
| 233 |
|
throw $e; |
| 234 |
|
} |
| 235 |
|
} |
| 236 |
|
|
| 237 |
|
/** |
| 238 |
|
* Send mail via the mail() function. |