Skip to content

Commit

Permalink
feature #57456 [Mailer] Add mailomat bridge (scuben)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
fabpot committed Jun 29, 2024
2 parents e5f4829 + 92943ae commit 1853eb7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Exception/UnsupportedSchemeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ class UnsupportedSchemeException extends LogicException
'class' => Bridge\Mailjet\Transport\MailjetTransportFactory::class,
'package' => 'symfony/mailjet-mailer',
],
'mailomat' => [
'class' => Bridge\Mailomat\Transport\MailomatTransportFactory::class,
'package' => 'symfony/mailomat-mailer',
],
'mailpace' => [
'class' => Bridge\MailPace\Transport\MailPaceTransportFactory::class,
'package' => 'symfony/mail-pace-mailer',
Expand Down
3 changes: 3 additions & 0 deletions Tests/Exception/UnsupportedSchemeExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use Symfony\Component\Mailer\Bridge\MailerSend\Transport\MailerSendTransportFactory;
use Symfony\Component\Mailer\Bridge\Mailgun\Transport\MailgunTransportFactory;
use Symfony\Component\Mailer\Bridge\Mailjet\Transport\MailjetTransportFactory;
use Symfony\Component\Mailer\Bridge\Mailomat\Transport\MailomatTransportFactory;
use Symfony\Component\Mailer\Bridge\MailPace\Transport\MailPaceTransportFactory;
use Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkTransportFactory;
use Symfony\Component\Mailer\Bridge\Resend\Transport\ResendTransportFactory;
Expand All @@ -47,6 +48,7 @@ public static function setUpBeforeClass(): void
MailerSendTransportFactory::class => false,
MailgunTransportFactory::class => false,
MailjetTransportFactory::class => false,
MailomatTransportFactory::class => false,
MandrillTransportFactory::class => false,
PostmarkTransportFactory::class => false,
ResendTransportFactory::class => false,
Expand Down Expand Up @@ -78,6 +80,7 @@ public static function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \
yield ['mailersend', 'symfony/mailersend-mailer'];
yield ['mailgun', 'symfony/mailgun-mailer'];
yield ['mailjet', 'symfony/mailjet-mailer'];
yield ['mailomat', 'symfony/mailomat-mailer'];
yield ['mailpace', 'symfony/mail-pace-mailer'];
yield ['mandrill', 'symfony/mailchimp-mailer'];
yield ['postmark', 'symfony/postmark-mailer'];
Expand Down
2 changes: 2 additions & 0 deletions Transport.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use Symfony\Component\Mailer\Bridge\MailerSend\Transport\MailerSendTransportFactory;
use Symfony\Component\Mailer\Bridge\Mailgun\Transport\MailgunTransportFactory;
use Symfony\Component\Mailer\Bridge\Mailjet\Transport\MailjetTransportFactory;
use Symfony\Component\Mailer\Bridge\Mailomat\Transport\MailomatTransportFactory;
use Symfony\Component\Mailer\Bridge\MailPace\Transport\MailPaceTransportFactory;
use Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkTransportFactory;
use Symfony\Component\Mailer\Bridge\Resend\Transport\ResendTransportFactory;
Expand Down Expand Up @@ -55,6 +56,7 @@ final class Transport
MailerSendTransportFactory::class,
MailgunTransportFactory::class,
MailjetTransportFactory::class,
MailomatTransportFactory::class,
MailPaceTransportFactory::class,
MandrillTransportFactory::class,
PostmarkTransportFactory::class,
Expand Down

0 comments on commit 1853eb7

Please sign in to comment.