Skip to content

Commit 29fb11e

Browse files
committed
Add support for Azure Email Communication Services.
Mailer.php::getTransportFactory() does not include AzureTransportFactory::class and this causes the azure+api dsn to fail. AzureTransportFactory::class is already present in the symfony/mailer package's Transport::getDefaultFactories() list since 7.1.
1 parent 35cc075 commit 29fb11e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

composer-require-checker.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"symbol-whitelist": [
33
"Symfony\\Component\\Mailer\\Bridge\\Amazon\\Transport\\SesTransportFactory",
4+
"Symfony\\Component\\Mailer\\Bridge\\Azure\\Transport\\AzureTransportFactory",
45
"Symfony\\Component\\Mailer\\Bridge\\Google\\Transport\\GmailTransportFactory",
56
"Symfony\\Component\\Mailer\\Bridge\\Infobip\\Transport\\InfobipTransportFactory",
67
"Symfony\\Component\\Mailer\\Bridge\\Mailchimp\\Transport\\MandrillTransportFactory",

src/Mailer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransportFactory;
1919
use Symfony\Component\Mailer\Transport\TransportInterface;
2020
use Symfony\Component\Mailer\Bridge\Amazon\Transport\SesTransportFactory;
21+
use Symfony\Component\Mailer\Bridge\Azure\Transport\AzureTransportFactory;
2122
use Symfony\Component\Mailer\Bridge\Google\Transport\GmailTransportFactory;
2223
use Symfony\Component\Mailer\Bridge\Infobip\Transport\InfobipTransportFactory;
2324
use Symfony\Component\Mailer\Bridge\Mailchimp\Transport\MandrillTransportFactory;
@@ -103,6 +104,7 @@ private function getTransportFactory(): Transport
103104
EsmtpTransportFactory::class,
104105
NativeTransportFactory::class,
105106
SesTransportFactory::class,
107+
AzureTransportFactory::class,
106108
GmailTransportFactory::class,
107109
InfobipTransportFactory::class,
108110
MandrillTransportFactory::class,

0 commit comments

Comments
 (0)