8000 feature #49805 [Mailer] Update default Mailgun port (dreadnip) · symfony/symfony@2e2eaad · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e2eaad

Browse files
committed
feature #49805 [Mailer] Update default Mailgun port (dreadnip)
This PR was squashed before being merged into the 6.3 branch. Discussion ---------- [Mailer] Update default Mailgun port | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | yes | Deprecations? | no | License | MIT Alternative to #49768. Instead of passing the port from the DSN, update the default to 587, which is recommended by Mailgun. I've also opened a docs PR to clarify that specific bridge DSNs ignore the port: symfony/symfony-docs#18118 Commits ------- 05e9be7 [Mailer] Update default Mailgun port
2 parents 1cea7c6 + 05e9be7 commit 2e2eaad

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

+1-1
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

+1
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