Download the PHP package bernhardwebstudio/msft-graph-mailer without Composer
On this page you can find all versions of the php package bernhardwebstudio/msft-graph-mailer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bernhardwebstudio/msft-graph-mailer
More information about bernhardwebstudio/msft-graph-mailer
Files in bernhardwebstudio/msft-graph-mailer
Package msft-graph-mailer
Short Description A mailer for Symfony to send mails using Microsoft Graph
License MIT
Informations about the package msft-graph-mailer
msft-graph-mailer
A mailer for Symfony to send mails using Microsoft Graph (i.e., send Office 365/Outlook/Exchange E-Mails)
Installation
Simply install using Composer:
Configuration
You need to tell Symfony that this is a mail transport:
Finally, you need to configure the mailer bundle to use this transport, e.g. using an ENV variable like
where you replace all the values in {} with your own values from your active directory.
The tenant and saveToSent options are optional.
Usage
If you set the configuration correctly, that's all, you can simply use the Symfony mailer and you will be sending the E-Mails using the Microsoft Graph API.
Please note that this transport does not support all types of E-Mail messages in its best form. Please contribute if you understand enough about MIME and Microsoft Graph to fix this.
Additionally, Microsoft imposes restrictions on the sender E-Mail you can use.
Simply be aware of that when setting the From of the E-Mail, please, if you want to prevent errors.
All versions of msft-graph-mailer with dependencies
microsoft/kiota-authentication-phpleague Version ^1.0|^2.0
microsoft/microsoft-graph Version ^2.2