Skip to content

Instantly share code, notes, and snippets.

View aunguyen1999's full-sized avatar
😇

Au Nguyen aunguyen1999

😇
  • Peppermint Việt Nam
  • Hồ Chí Minh
  • 16:54 (UTC +07:00)
  • LinkedIn in/aunguyenuit
View GitHub Profile
@aunguyen1999
aunguyen1999 / OAuthEsmtpTransportFactory.php
Last active October 11, 2024 09:03 — forked from beerendlauwers/OAuthEsmtpTransportFactoryDecorator.php
(Drupal) Send emails with Symfony Mailer through Outlook / office365 with OAuth
<?php
namespace Drupal\symfony_mailer_office365\Transport;
use Drupal\symfony_mailer_office365\Transport\Smtp\Auth\XOAuth2Authenticator;
use Psr\EventDispatcher\EventDispatcherInterface;
use Psr\Log\LoggerInterface;
use Sentry\HttpClient\HttpClientInterface;
use Symfony\Component\Mailer\Transport\AbstractTransportFactory;
use Symfony\Component\Mailer\Transport\Dsn;