bug #35518 [Mailer] Fix STARTTLS support for Postmark and Mandrill (fabpot)

This PR was merged into the 4.4 branch.

Discussion
----------

[Mailer] Fix STARTTLS support for Postmark and Mandrill

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #34846 <!-- prefix each issue number with "Fix #", if any -->
| License       | MIT
| Doc PR        | n/a

Commits
-------

44b27c6816 [Mailer] Fix STARTTLS support for Postmark and Mandrill
This commit is contained in:
Fabien Potencier 2020-01-30 11:34:36 +01:00
commit 6b0103ec5a
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);