-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Mailer][SendGrid] add support for scheduling delivery via send_at API parameter
#60372
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
|
Test failures look unrelated |
|
New features need to target the newest branch, which is 7.3 |
src/Symfony/Component/Mailer/Bridge/Sendgrid/Tests/Transport/SendgridApiTransportTest.php
Show resolved
Hide resolved
src/Symfony/Component/Mailer/Bridge/Sendgrid/Transport/SendgridApiTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Mailer/Bridge/Sendgrid/Transport/SendgridApiTransport.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Mailer/Bridge/Sendgrid/Transport/SendgridApiTransport.php
Show resolved
Hide resolved
50ac018 to
a317491
Compare
|
@OskarStark @bkosun Thank you for your feedback, I've applied all the suggested changes. Let me know if you would like me to make additional changes. |
|
Is this Send-At header supported by their SMTP server ? |
|
Hi @stof, Yes, the Send-At header is supported by their SMTP server as well, as per the documentation :
|
send_at API parameter
a317491 to
74616f1
Compare
|
Test failures look unrelated, they all reference |
src/Symfony/Component/Mailer/Bridge/Sendgrid/Transport/SendgridApiTransport.php
Outdated
Show resolved
Hide resolved
a501f19 to
87f5f97
Compare
|
Thank you @MrMitch. |
This PR adds support for scheduling delivery when using the SendGrid API transport (with a
sendgrid+apiDSN), by providing a\DateTimeInterfaceobject in aSymfony\Component\Mime\Header\DateHeadernamedSend-At.It will be mapped to the
send_atparameter of the[POST] /mail/sendAPI endpoint.