-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Mailer] Add retry_period
option for email transport
#54939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
Any chance to see this PR merged in 7.2 ? |
retry_period
option for email transport
Is there anything more you'd like to do before reviewing this PR? Let me know what you think. |
It looks like your commiter email is not associated with your GitHub account. You may want to change that |
Thanks, but how can you see that? And is it a problem to review the PR? |
OK, I don't know why. Is this blocking the review? I don't really care whether I get credit for this PR or not. |
@MrYamous Thanks, that's a good idea. Hope this PR will be accepted one day |
5749659
to
9716a89
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've simplified the implementation in a second commit
Thank you @sdespont. |
This PR was merged into the 7.3 branch. Discussion ---------- [Mailer] Add missing `retry_period` DSN option | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT I found changelog is missing while documenting symfony/symfony-docs#20511 Code PR: #54939 Commits ------- 2512b64 [Mailer] Add missing retry_period DSN option
RoundRobinTransport constructor has retryPeriod set to 60 seconds. This cannot be configured right now.
Let's say all the transports fail (e.g. email address with domain that does not exist).
Problems:
This PR permits to specify a retry period using a new DNS option
retry_period
likeMAILER_DSN="roundrobin(postmark+api://ID@default sendgrid+smtp://KEY@default)?retry_period=15"