Skip to content

Commit a3df74a

Browse files
committed
feature symfony#52560 [Mailer] Update default Mailjet port (Katario)
This PR was merged into the 6.4 branch. Discussion ---------- [Mailer] Update default Mailjet port | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | License | MIT Similar to [symfony#49805](symfony#49805), update the default to 587, which is recommended by Mailjet. Changelog is also updated accordingly. References: > Nowadays, port 587 is used for secure submission of email for delivery. Most of the client software are configured to use this port to send your messages. [Mailjet Blog Post about this](https://www.mailjet.com/blog/email-best-practices/which-smtp-port-mailjet/). Commits ------- 1799ed2 [Mailer] Update default Mailjet port
2 parents 862b701 + 1799ed2 commit a3df74a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Symfony/Component/Mailer/Bridge/Mailjet/Transport/MailjetSmtpTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class MailjetSmtpTransport extends EsmtpTransport
1919
{
2020
public function __construct(string $username, #[\SensitiveParameter] string $password, EventDispatcherInterface $dispatcher = null, LoggerInterface $logger = null)
2121
{
22-
parent::__construct('in-v3.mailjet.com', 465, true, $dispatcher, $logger);
22+
parent::__construct('in-v3.mailjet.com', 587, true, $dispatcher, $logger);
2323

2424
$this->setUsername($username);
2525
$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 DSN parameter `peer_fingerprint` to verify TLS certificate fingerprint
8+
* Change the default port for the `mailjet+smtp` transport from 465 to 587
89

910
6.3
1011
---

0 commit comments

Comments
 (0)