communitales / symfony-microsoft365-mailer
Symfony Office365 Mailer Bridge
Installs: 117
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-mailer-bridge
Requires
- php: >=8.2
- microsoft/microsoft-graph: ^2.12
- symfony/mailer: ^6.4|^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.59
- phpstan/phpstan: ^1.11
- phpunit/phpunit: ^10.5
- rector/rector: ^1.2
- symfony/dotenv: ^7.1
- symfony/http-client: ^6.4|^7.0
- vimeo/psalm: ^5.25
This package is auto-updated.
Last update: 2025-03-29 00:55:00 UTC
README
Provides Microsoft 365 integration for Symfony Mailer.
Configuration example:
# API MAILER_DSN=microsoft365+api://CLIENT_ID:CLIENT_SECRET@default?tenant_id=TENANT_ID&username=USERNAME
where:
CLIENT_ID
is your Microsoft 365 API client IDCLIENT_SECRET
is your Microsoft 365 API client secretTENANT_ID
is your Microsoft 365 API tenant IDUSERNAME
is your Microsoft 365 API username
# config/services.yaml services: Communitales\Symfony\Component\Mailer\Bridge\Microsoft365\Transport\Microsoft365TransportFactory: tags: ['mailer.transport_factory']
Register App for Microsoft credentials
Add the API-Permissions:
- Microsoft Graph
- Mail.ReadWrite
- Mail.Send