Skip to content

Commit dcd9f9b

Browse files
committed
feature #51014 [Mailer] Add Scaleway bridge (MrMicky-FR)
This PR was squashed before being merged into the 6.4 branch. Discussion ---------- [Mailer] Add Scaleway bridge | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | License | MIT | Doc PR | symfony/symfony-docs#18581 This PR adds a new mailer bridge for [Scaleway Transactional Emails](https://www.scaleway.com/en/transactional-email-tem/). I've been using this bridge in production for several months, with thousands of emails sent, and everything works perfectly 🚀 Commits ------- bd9922622f [Mailer] Add Scaleway bridge
2 parents 2b10747 + 9ef1f1d commit dcd9f9b

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Exception/UnsupportedSchemeException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ class UnsupportedSchemeException extends LogicException
5656
'class' => Bridge\Postmark\Transport\PostmarkTransportFactory::class,
5757
'package' => 'symfony/postmark-mailer',
5858
],
59+
'scaleway' => [
60+
'class' => Bridge\Scaleway\Transport\ScalewayTransportFactory::class,
61+
'package' => 'symfony/scaleway-mailer',
62+
],
5963
'sendgrid' => [
6064
'class' => Bridge\Sendgrid\Transport\SendgridTransportFactory::class,
6165
'package' => 'symfony/sendgrid-mailer',

Tests/Exception/UnsupportedSchemeExceptionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
use Symfony\Component\Mailer\Bridge\Mailjet\Transport\MailjetTransportFactory;
2424
use Symfony\Component\Mailer\Bridge\OhMySmtp\Transport\OhMySmtpTransportFactory;
2525
use Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkTransportFactory;
26+
use Symfony\Component\Mailer\Bridge\Scaleway\Transport\ScalewayTransportFactory;
2627
use Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridTransportFactory;
2728
use Symfony\Component\Mailer\Bridge\Sendinblue\Transport\SendinblueTransportFactory;
2829
use Symfony\Component\Mailer\Exception\UnsupportedSchemeException;
@@ -46,6 +47,7 @@ public static function setUpBeforeClass(): void
4647
MandrillTransportFactory::class => false,
4748
OhMySmtpTransportFactory::class => false,
4849
PostmarkTransportFactory::class => false,
50+
ScalewayTransportFactory::class => false,
4951
SendgridTransportFactory::class => false,
5052
SendinblueTransportFactory::class => false,
5153
SesTransportFactory::class => false,
@@ -76,6 +78,7 @@ public static function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \
7678
yield ['mandrill', 'symfony/mailchimp-mailer'];
7779
yield ['ohmysmtp', 'symfony/oh-my-smtp-mailer'];
7880
yield ['postmark', 'symfony/postmark-mailer'];
81+
yield ['scaleway', 'symfony/scaleway-mailer'];
7982
yield ['sendgrid', 'symfony/sendgrid-mailer'];
8083
yield ['sendinblue', 'symfony/sendinblue-mailer'];
8184
yield ['ses', 'symfony/amazon-mailer'];

Transport.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
use Symfony\Component\Mailer\Bridge\Mailjet\Transport\MailjetTransportFactory;
2424
use Symfony\Component\Mailer\Bridge\OhMySmtp\Transport\OhMySmtpTransportFactory;
2525
use Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkTransportFactory;
26+
use Symfony\Component\Mailer\Bridge\Scaleway\Transport\ScalewayTransportFactory;
2627
use Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridTransportFactory;
2728
use Symfony\Component\Mailer\Bridge\Sendinblue\Transport\SendinblueTransportFactory;
2829
use Symfony\Component\Mailer\Exception\InvalidArgumentException;
@@ -55,6 +56,7 @@ final class Transport
5556
MandrillTransportFactory::class,
5657
OhMySmtpTransportFactory::class,
5758
PostmarkTransportFactory::class,
59+
ScalewayTransportFactory::class,
5860
SendgridTransportFactory::class,
5961
SendinblueTransportFactory::class,
6062
SesTransportFactory::class,

0 commit comments

Comments
 (0)