Download the PHP package wapacro/laravel-msgraph-mail without Composer
On this page you can find all versions of the php package wapacro/laravel-msgraph-mail. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wapacro/laravel-msgraph-mail
More information about wapacro/laravel-msgraph-mail
Files in wapacro/laravel-msgraph-mail
Package laravel-msgraph-mail
Short Description Laravel mail driver to send emails using Microsoft Graph, supporting both personal accounts as well as work/school accounts (365/Exchange)
License MIT
Homepage https://github.com/wapacro/laravel-msgraph-mail
Informations about the package laravel-msgraph-mail
Laravel Microsoft Graph Mail
This package makes it easy to send emails from your personal, work or school account using Microsoft's Graph API, allowing you to benefit from HTTP instead of SMTP with Laravel.
Tested with different company (Microsoft 365 Business) accounts
Installation
Install the package using composer:
Add the configuration to your mail.php config file:
Valid values for tenant
are your tenant identifier (work & school accounts) or common
for personal accounts.
Note: This package relies on Laravel's Cache interface for caching access tokens. Make sure to configure it properly, too!
Version
The latest version is only compatible with Laravel 8.x. Use an older version if you didn't upgrade to Laravel 8 yet:
Package Version | Laravel Version |
---|---|
^1.0 | 7.x |
^2.0 | 8.x |
Getting the credentials
To get the necessary client ID and secret you'll need to register your application and grant it the required permissions. Head over to the Azure Portal to do so (you don't need to be an Azure user).
Make sure to grant the Mail.Send permission and to generate a secret afterwards (may be hidden during app registration).
Work & School accounts: Granting your app the Mail.Send permission allows you by default to send emails with every valid email address within your company/school. Use an Exchange Online Application Access Policy to restrict which email addresses are valid senders for your application.
All versions of laravel-msgraph-mail with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^7.0
illuminate/mail Version ^8.0
illuminate/support Version ^8.0