8000 [Mailer] Update default Mailgun port · fancyweb/symfony@05e9be7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 05e9be7

Browse files
Sander De la Marchefabpot
authored andcommitted
[Mailer] Update default Mailgun port
1 parent c2090d3 commit 05e9be7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Symfony/Component/Mailer/Bridge/Mailgun/Transport/MailgunSmtpTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class MailgunSmtpTransport extends EsmtpTransport
2424

2525
public function __construct(string $username, #[\SensitiveParameter] string $password, string $region = null, EventDispatcherInterface $dispatcher = null, LoggerInterface $logger = null)
2626
{
27-
parent::__construct('us' !== ($region ?: 'us') ? sprintf('smtp.%s.mailgun.org', $region) : 'smtp.mailgun.org', 465, true, $dispatcher, $logger);
27+
parent::__construct('us' !== ($region ?: 'us') ? sprintf('smtp.%s.mailgun.org', $region) : 'smtp.mailgun.org', 587, true, $dispatcher, $logger);
2828

2929
$this->setUsername($username);
3030
$this->setPassword($password);

src/Symfony/Component/Mailer/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CHANGELOG
55
---
66

77
* Add `MessageEvent::reject()` to allow rejecting an email before sending it
8+
* Change the default port for the `mailgun+smtp` transport from 465 to 587
89

910
6.2.7
1011
-----

0 commit comments

Comments
 (0)
0