Configuration
This section covers all aspects of configuring the Microsoft Exchange 365 Mailer extension for TYPO3.
After completing the Azure Configuration, you need to configure the TYPO3 extension with the values obtained from Microsoft Entra ID.
Quick Configuration Overview
The extension requires the following key configuration variables:
- Mail Transport: Set to use Exchange365Transport
- Tenant ID: Your Microsoft Entra ID tenant identifier
- Client ID: Your Azure application identifier
- Client Secret: Your Azure application secret
- From Email: The sender email address
- Graph Sender User ID (optional): Mailbox used for the Microsoft Graph
/users/call. Decouples the Graph mailbox from the visible{id}/ send Mail Fromheader for Send As / Send On Behalf scenarios. - Save to Sent Items: Whether to save emails to sent folder
For detailed step-by-step instructions, see:
- Essential Configuration - For server-side email sending (recommended for production)
- Site Set Configuration - For frontend email sending on TYPO3 v13 and v14
- Frontend Configuration - The TypoScript constants, required on TYPO3 v12
Configuration Methods
You can configure this extension using:
- Essential Configuration (Recommended)
-
$GLOBALS, filled from environment variables['TYPO3_ CONF_ VARS'] ['MAIL'] - Applies to backend, CLI, scheduler and frontend
- Site Set (TYPO3 v13 and v14, for Forms)
-
- Activated per site, edited in Site Management > Sites
- The modern replacement for the static TypoScript template
- Frontend Configuration (TypoScript, all versions)
-
- Optional per-site overrides via the static template
- Read secrets with
:= get— never write them into TypoScriptEnv (...)
Choose the method that best fits your deployment workflow and security requirements.
Configuration Precedence
The two sources are merged per setting, not all-or-nothing:
- The global mail settings (
$GLOBALS) are the baseline and apply in every context — frontend, backend, command line and scheduler.['TYPO3_ CONF_ VARS'] ['MAIL'] ['transport_ exchange365_*'] - In the frontend, any non-empty value from the site set or from TypoScript overrides the corresponding mail setting. Values left empty fall through to the baseline.
This lets you keep the credentials in environment variables while still adjusting, for
example, from per site in the backend.
Attention
Security Recommendation: Use backend configuration with environment variables for production environments to avoid exposing sensitive Azure credentials in TypoScript or in config/.