PHPackages                             inlinestudio/mailconnectors - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. inlinestudio/mailconnectors

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

inlinestudio/mailconnectors
===========================

A library with connectors for api based email sending on Google and O365

v1.0.0(1mo ago)01.2k↑500%[2 PRs](https://github.com/inlinestudio/laravel-api-mailer-connectors/pulls)MITPHPPHP ^8.1CI passing

Since Jan 17Pushed 6d agoCompare

[ Source](https://github.com/inlinestudio/laravel-api-mailer-connectors)[ Packagist](https://packagist.org/packages/inlinestudio/mailconnectors)[ Docs](https://github.com/inlinestudio/laravel-api-mailer-connectors)[ GitHub Sponsors](https://github.com/inlst)[ RSS](/packages/inlinestudio-mailconnectors/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (20)Versions (15)Used By (0)

[![run-tests](https://github.com/inlinestudio/laravel-api-mailer-connectors/actions/workflows/run-tests.yml/badge.svg)](https://github.com/inlinestudio/laravel-api-mailer-connectors/actions/workflows/run-tests.yml)[![codecov](https://camo.githubusercontent.com/c5235fe0277b9ad22d653ed0527a41469635a42b466559d5afc10c6b04aeb377/68747470733a2f2f636f6465636f762e696f2f67682f696e6c696e6573747564696f2f6c61726176656c2d6170692d6d61696c65722d636f6e6e6563746f72732f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d43797441724c69795748)](https://codecov.io/gh/inlinestudio/laravel-api-mailer-connectors)

Laravel API Mail driver - Mail Driver for Office365 and (soon) Google
=====================================================================

[](#laravel-api-mail-driver---mail-driver-for-office365-and-soon-google)

Mail driver for the [Laravel framework](https://laravel.com/) 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
-------------------

[](#install-the-package)

```
  composer require inlinestudio/mailconnectors

```

---

Configure
---------

[](#configure)

### O365

[](#o365)

To use this package you have to register your application [here](https://go.microsoft.com/fwlink/?linkid=2083908). More informations [here](https://docs.microsoft.com/en-us/graph/auth-register-app-v2).

To obtain needed config values use this [instructions](https://docs.microsoft.com/en-us/graph/auth-v2-service):

- Open the [Azure Active Directory-Portal](https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/Overview)) with your Office365 Admin-User
- Open the Section Manage &gt; [App-Registrations](https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps)
- Create a new App
- Within the App under `Manage` &gt; `API-Permissions` &gt; `Application Permissions` add the `Mail.ReadWrite` and the `Mail.Send` permission (Microsoft Graph &gt; Application Permissions &gt; Mail &gt; Mail.ReadWrite and Microsoft Graph &gt; Application Permissions &gt; Mail &gt; Mail.Send)
- After saving the permission apply the Admin-Permission for your organization
- In the Section Manage &gt; Certificates and Secrets create a new Client Secret with Expiration = 24 months, this you need later for the `.env` - Variable `OFFICE365MAIL_CLIENT_SECRET`

The `Mail.ReadWrite` Permission is needed when sending large attachments (&gt;4MB).

#### .env - File

[](#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

[](#configmailphp---add-to-mailer-configuration-array)

```
'O365' => [
    'transport' => 'O365',
],

```

---

### Google (soon)

[](#google-soon)

---

Copyright and license
---------------------

[](#copyright-and-license)

Copyright © InlineStudio. All Rights Reserved. Licensed under the MIT [license](LICENSE).

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance96

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 70.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~112 days

Recently: every ~280 days

Total

11

Last Release

38d ago

Major Versions

0.0.11 → v1.0.02026-02-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ff46301b888ba100aafa44cd0d152c368160f887cc8a1ff929878d4e677f4db?d=identicon)[Inline Studio](/maintainers/Inline%20Studio)

---

Top Contributors

[![TKrisee](https://avatars.githubusercontent.com/u/107202954?v=4)](https://github.com/TKrisee "TKrisee (41 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (16 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

gmail-apilaravelmsgraphlaravelmaillibrary

###  Code Quality

TestsPest

Static AnalysisRector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/inlinestudio-mailconnectors/health.svg)

```
[![Health](https://phpackages.com/badges/inlinestudio-mailconnectors/health.svg)](https://phpackages.com/packages/inlinestudio-mailconnectors)
```

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

5702.4M6](/packages/propaganistas-laravel-disposable-email)[creagia/laravel-web-mailer

Laravel Web Mailer

6922.8k](/packages/creagia-laravel-web-mailer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
