inlinestudio/mailconnectors
A library with connectors for api based email sending on Google and O365
1,321
| Install | |
|---|---|
composer require inlinestudio/mailconnectors |
|
| Latest Version: | v1.0.1 |
| PHP: | ^8.1 |
| Laravel: | 10 – 13 |
| Older releases: | 9 |
| License: | MIT |
| Last Updated: | Aug 10, 2026 |
| Links: | GitHub · Packagist |
Maintainer: Inline Studio
Laravel API Mail driver - Mail Driver for Office365 and (soon) Google
Mail driver for the Laravel framework to send emails using Microsoft Graph without user authentication and SMTP. Only specify the E-Mail-Address in the FROM-Header of the E-Mail and this package will send the email trough the providers API and put the sent E-Mail in the sender's Mailbox sent folder.
O365 Key features:
- Send E-Mails with the Microsoft Graph-Api instead of the SMTP driver
- Automatically puts the E-Mail in the Sent folder of the user in the From-Header
- One Application per Organization
- Supports multiple Domains
- Supports large file attachments
- Faster and Error-less than the SMTP protocol
Install the Package
composer require inlinestudio/mailconnectors
Configure
O365
To use this package you have to register your application here. More informations here.
To obtain needed config values use this instructions:
- Open the Azure Active Directory-Portal) with your Office365 Admin-User
- Open the Section Manage > App-Registrations
- Create a new App
- Within the App under
Manage>API-Permissions>Application Permissionsadd theMail.ReadWriteand theMail.Sendpermission (Microsoft Graph > Application Permissions > Mail > Mail.ReadWrite and Microsoft Graph > Application Permissions > Mail > Mail.Send) - After saving the permission apply the Admin-Permission for your organization
- In the Section Manage > Certificates and Secrets create a new Client Secret with Expiration = 24 months, this you need later for the
.env- VariableOFFICE365MAIL_CLIENT_SECRET
The Mail.ReadWrite Permission is needed when sending large attachments (>4MB).
.env - File
MAIL_MAILER=O365
OFFICE365MAIL_CLIENT_ID=YOUR-MS-GRAPH-CLIENT-ID
OFFICE365MAIL_TENANT=YOUR-MS-GRAPH-TENANT-ID
OFFICE365MAIL_CLIENT_SECRET=YOUR-MS-GRAPH-CLIENT-SECRET
config/mail.php - add to mailer configuration array
'O365' => [
'transport' => 'O365',
],
Google (soon)
Copyright and license
Copyright © InlineStudio. All Rights Reserved. Licensed under the MIT license.
Related Packages
eventhomes/laravel-mandrillhooks
A simple Mandrill webhook controller to help with events. Compatible with Larave...
75,648
62
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.0.1 | ^8.1 | ^10.0 | | MIT | |
| v1.0.0 | ^8.1 | ^10.0 | | MIT | |
| 0.0.11 | ^8.1 | ^10.0 | | MIT | |
| 0.0.10 | ^8.1 | ^10.0 | | MIT | |
| 0.0.9 | ^8.1 | ^10.0 | | MIT | |
| 0.0.8 | ^8.1 | ^9.0 | MIT | |
| 0.0.7 | ^8.1 | ^9.0 | MIT | |
| 0.0.6 | ^8.1 | ^9.0 | MIT | |
| 0.0.5 | ^8.1 | ^9.0 | MIT | |
| 0.0.3 | ^8.1 | ^9.0 | MIT | |
| 0.0.2 | ^8.1 | ^9.0 | MIT | |
| 0.0.1 | ^8.1 | ^9.0 | MIT |