communitales/symfony-microsoft365-mailer

Symfony Office365 Mailer Bridge

7.1.1 2024-07-31 08:58 UTC

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 ID
  • CLIENT_SECRET is your Microsoft 365 API client secret
  • TENANT_ID is your Microsoft 365 API tenant ID
  • USERNAME 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

Resources