Skip to content

Commit 71611e6

Browse files
committed
feature #58252 [Mailer] add Mailtrap bridge (kbond)
This PR was merged into the 7.2 branch. Discussion ---------- [Mailer] add Mailtrap bridge | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | yes | Deprecations? | no | Issues | n/a | License | MIT This adds a new mailer bridge for [Mailtrap](https://mailtrap.io/) (their sending feature - not email testing). ### Documentation * symfony/symfony-docs#20217 ### Recipe * symfony/recipes#1338 Commits ------- c811ff3d5f [Mailer] add Mailtrap bridge
2 parents c951fa5 + b44cf99 commit 71611e6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2647,6 +2647,7 @@ private function registerMailerConfiguration(array $config, ContainerBuilder $co
26472647
MailerBridge\Mailchimp\Transport\MandrillTransportFactory::class => 'mailer.transport_factory.mailchimp',
26482648
MailerBridge\Postal\Transport\PostalTransportFactory::class => 'mailer.transport_factory.postal',
26492649
MailerBridge\Postmark\Transport\PostmarkTransportFactory::class => 'mailer.transport_factory.postmark',
2650+
MailerBridge\Mailtrap\Transport\MailtrapTransportFactory::class => 'mailer.transport_factory.mailtrap',
26502651
MailerBridge\Resend\Transport\ResendTransportFactory::class => 'mailer.transport_factory.resend',
26512652
MailerBridge\Scaleway\Transport\ScalewayTransportFactory::class => 'mailer.transport_factory.scaleway',
26522653
MailerBridge\Sendgrid\Transport\SendgridTransportFactory::class => 'mailer.transport_factory.sendgrid',

Resources/config/mailer_transports.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\Mailjet\Transport\MailjetTransportFactory;
2323
use Symfony\Component\Mailer\Bridge\Mailomat\Transport\MailomatTransportFactory;
2424
use Symfony\Component\Mailer\Bridge\MailPace\Transport\MailPaceTransportFactory;
25+
use Symfony\Component\Mailer\Bridge\Mailtrap\Transport\MailtrapTransportFactory;
2526
use Symfony\Component\Mailer\Bridge\Postal\Transport\PostalTransportFactory;
2627
use Symfony\Component\Mailer\Bridge\Postmark\Transport\PostmarkTransportFactory;
2728
use Symfony\Component\Mailer\Bridge\Resend\Transport\ResendTransportFactory;
@@ -61,6 +62,7 @@
6162
'null' => NullTransportFactory::class,
6263
'postal' => PostalTransportFactory::class,
6364
'postmark' => PostmarkTransportFactory::class,
65+
'mailtrap' => MailtrapTransportFactory::class,
6466
'resend' => ResendTransportFactory::class,
6567
'scaleway' => ScalewayTransportFactory::class,
6668
'sendgrid' => SendgridTransportFactory::class,

0 commit comments

Comments
 (0)