Skip to content

Commit 1853eb7

Browse files
committed
feature #57456 [Mailer] Add mailomat bridge (scuben)
This PR was merged into the 7.2 branch. Discussion ---------- [Mailer] Add mailomat bridge | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | yes | Deprecations? | no | Issues | n/a | License | MIT | Doc PR | symfony/symfony-docs#19978 | Recipe PR | symfony/recipes#1322 Adding a Bridge for [mailomat.swiss](https://mailomat.swiss) with remote events ([API documentation](https://api.mailomat.swiss/docs)). Commits ------- d20088b518 [Mailer] Add mailomat bridge
2 parents e5f4829 + 92943ae commit 1853eb7

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
@@ -48,6 +48,10 @@ class UnsupportedSchemeException extends LogicException
4848
'class' => Bridge\Mailjet\Transport\MailjetTransportFactory::class,
4949
'package' => 'symfony/mailjet-mailer',
5050
],
51+
'mailomat' => [
52+
'class' => Bridge\Mailomat\Transport\MailomatTransportFactory::class,
53+
'package' => 'symfony/mailomat-mailer',
54+
],
5155
'mailpace' => [
5256
'class' => Bridge\MailPace\Transport\MailPaceTransportFactory::class,
5357
'package' => 'symfony/mail-pace-mailer',

Tests/Exception/UnsupportedSchemeExceptionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
use Symfony\Component\Mailer\Bridge\MailerSend\Transport\MailerSendTransportFactory;
2323
use Symfony\Component\Mailer\Bridge\Mailgun\Transport\MailgunTransportFactory;
2424
use Symfony\Component\Mailer\Bridge\Mailjet\Transport\MailjetTransportFactory;
25+
use Symfony\Component\Mailer\Bridge\Mailomat\Transport\MailomatTransportFactory;
2526
use Symfony\Component\Mailer\Bridge\MailPace\Transport\MailPaceTransportFactory;
2627
use Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkTransportFactory;
2728
use Symfony\Component\Mailer\Bridge\Resend\Transport\ResendTransportFactory;
@@ -47,6 +48,7 @@ public static function setUpBeforeClass(): void
4748
MailerSendTransportFactory::class => false,
4849
MailgunTransportFactory::class => false,
4950
MailjetTransportFactory::class => false,
51+
MailomatTransportFactory::class => false,
5052
MandrillTransportFactory::class => false,
5153
PostmarkTransportFactory::class => false,
5254
ResendTransportFactory::class => false,
@@ -78,6 +80,7 @@ public static function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \
7880
yield ['mailersend', 'symfony/mailersend-mailer'];
7981
yield ['mailgun', 'symfony/mailgun-mailer'];
8082
yield ['mailjet', 'symfony/mailjet-mailer'];
83+
yield ['mailomat', 'symfony/mailomat-mailer'];
8184
yield ['mailpace', 'symfony/mail-pace-mailer'];
8285
yield ['mandrill', 'symfony/mailchimp-mailer'];
8386
yield ['postmark', 'symfony/postmark-mailer'];

Transport.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
use Symfony\Component\Mailer\Bridge\MailerSend\Transport\MailerSendTransportFactory;
2323
use Symfony\Component\Mailer\Bridge\Mailgun\Transport\MailgunTransportFactory;
2424
use Symfony\Component\Mailer\Bridge\Mailjet\Transport\MailjetTransportFactory;
25+
use Symfony\Component\Mailer\Bridge\Mailomat\Transport\MailomatTransportFactory;
2526
use Symfony\Component\Mailer\Bridge\MailPace\Transport\MailPaceTransportFactory;
2627
use Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkTransportFactory;
2728
use Symfony\Component\Mailer\Bridge\Resend\Transport\ResendTransportFactory;
@@ -55,6 +56,7 @@ final class Transport
5556
MailerSendTransportFactory::class,
5657
MailgunTransportFactory::class,
5758
MailjetTransportFactory::class,
59+
MailomatTransportFactory::class,
5860
MailPaceTransportFactory::class,
5961
MandrillTransportFactory::class,
6062
PostmarkTransportFactory::class,

0 commit comments

Comments
 (0)