[Mailer] Fix STARTTLS support for Postmark and Mandrill

This commit is contained in:
Fabien Potencier 2020-01-30 11:31:13 +01:00
parent 592a31a5e6
commit 44b27c6816
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ class MandrillSmtpTransport extends EsmtpTransport
{
public function __construct(string $username, string $password, EventDispatcherInterface $dispatcher = null, LoggerInterface $logger = null)
{
parent::__construct('smtp.mandrillapp.com', 587, true, $dispatcher, $logger);
parent::__construct('smtp.mandrillapp.com', 587, false, $dispatcher, $logger);
$this->setUsername($username);
$this->setPassword($password);

View File

@ -26,7 +26,7 @@ class PostmarkSmtpTransport extends EsmtpTransport
{
public function __construct(string $id, EventDispatcherInterface $dispatcher = null, LoggerInterface $logger = null)
{
parent::__construct('smtp.postmarkapp.com', 587, true, $dispatcher, $logger);
parent::__construct('smtp.postmarkapp.com', 587, false, $dispatcher, $logger);
$this->setUsername($id);
$this->setPassword($id);