Browse Source

Fixes #67: If transport is gone, try to restart transport

tags/2.1.2
Mikk Tendermann 6 years ago committed by Alexander Makarov
parent
commit
2299e4f485
  1. 2
      CHANGELOG.md
  2. 5
      src/Mailer.php

2
CHANGELOG.md

@ -5,7 +5,7 @@ Yii Framework 2 swiftmailer extension Change Log
-----------------------
- Enh #63: Added ability to specify the disposition of an attachment by supplying a `setDisposition` value when embedding content in a message (CorWatts)
- Bug #67: If transport is gone, try to restart transport (mikk150)
2.1.1 April 25, 2018
--------------------

5
src/Mailer.php

@ -133,6 +133,11 @@ class Mailer extends BaseMailer
$this->_transport = $this->createTransport($this->_transport);
}
if (!$this->_transport->ping()) {
$this->_transport->stop();
$this->_transport->start();
}
return $this->_transport;
}

Loading…
Cancel
Save