PHPackages                             vitrus/symfony-office-graph-mailer - 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. vitrus/symfony-office-graph-mailer

ActiveSymfony-mailer-bridge[Mail &amp; Notifications](/categories/mail)

vitrus/symfony-office-graph-mailer
==================================

Symfony Mailer Bridge for Microsoft Graph Api Client

v0.0.7(5mo ago)1329.6k↓13.1%12[2 PRs](https://github.com/vitrus/symfony-office-graph-mailer/pulls)MITPHPPHP ^8.0 || ^7.4

Since Jan 18Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/vitrus/symfony-office-graph-mailer)[ Packagist](https://packagist.org/packages/vitrus/symfony-office-graph-mailer)[ RSS](/packages/vitrus-symfony-office-graph-mailer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (8)Used By (0)

Symfony Mailer Transport for Microsoft Office 365 Graph API
===========================================================

[](#symfony-mailer-transport-for-microsoft-office-365-graph-api)

Provides integration between the `Symfony Mailer` and `Office365 Graph API`.

- Tested on:
    - `Symfony 6.4` on `php 8.1`
    - `Symfony 5.4` on `php 7.4`
- Should work on all Symfony 5.x, 6.x, 7.x instances
    - Feel free to report issues on github if you have them
- Does not require the Microsoft Graph API Client (speaks to Graph API directly)
- No Guzzle or other external libraries needed, uses only Symfony HTTP Client and Symfony Mailer

Installation steps
------------------

[](#installation-steps)

#### 1 add via composer

[](#1-add-via-composer)

```
composer require vitrus/symfony-office-graph-mailer
```

#### 2 Tag the transport factory in your `services.yaml`

[](#2-tag-the-transport-factory-in-your-servicesyaml)

We might change this package to be a bundle so this is no longer needed in the future

```
 Vitrus\SymfonyOfficeGraphMailer\Transport\GraphApiTransportFactory:
    tags: ['mailer.transport_factory']
```

#### 3 configure mailer to use the `microsoft-graph-api` scheme in `.env` (or `.env.local`)

[](#3-configure-mailer-to-use-the-microsoft-graph-api-scheme-in-env-or-envlocal)

```
MAILER_DSN=microsoft-graph-api://{CLIENT_ID}:{CLIENT_SECRET}@{TENANT}
```

The tenant you use here should have permissions to send e-mail, and have access to the user you will configure as `sender` in your e-mails!

Feature: Store in sent items
----------------------------

[](#feature-store-in-sent-items)

Messages are automatically stored in Office 365 `Sent Items` folder, you can disable this with a custom header:

```
$message = (new Email())->subject($subject);

// add (falsy) text header to your Email
$message->getHeaders()->addTextHeader('X-Save-To-Sent-Items', 'false');
```

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance72

Regular maintenance activity

Popularity39

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.2% 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 ~139 days

Recently: every ~29 days

Total

6

Last Release

155d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d6074c1f9f5348a93358c11e2b8240ae1fe438e3d3884c5b1d320d9f13d1a11?d=identicon)[vitrus](/maintainers/vitrus)

---

Top Contributors

[![vitrus](https://avatars.githubusercontent.com/u/9404015?v=4)](https://github.com/vitrus "vitrus (13 commits)")[![mkoitka](https://avatars.githubusercontent.com/u/825214?v=4)](https://github.com/mkoitka "mkoitka (3 commits)")[![enekochan](https://avatars.githubusercontent.com/u/1836845?v=4)](https://github.com/enekochan "enekochan (1 commits)")[![martinstadelmann](https://avatars.githubusercontent.com/u/25382761?v=4)](https://github.com/martinstadelmann "martinstadelmann (1 commits)")

### Embed Badge

![Health badge](/badges/vitrus-symfony-office-graph-mailer/health.svg)

```
[![Health](https://phpackages.com/badges/vitrus-symfony-office-graph-mailer/health.svg)](https://phpackages.com/packages/vitrus-symfony-office-graph-mailer)
```

###  Alternatives

[illuminate/mail

The Illuminate Mail package.

5910.1M391](/packages/illuminate-mail)[symfony/mailjet-mailer

Symfony Mailjet Mailer Bridge

484.7M12](/packages/symfony-mailjet-mailer)[mailersend/laravel-driver

MailerSend Laravel Driver

87732.8k4](/packages/mailersend-laravel-driver)[symfony/mailchimp-mailer

Symfony Mailchimp Mailer Bridge

275.9M17](/packages/symfony-mailchimp-mailer)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[symfony/resend-mailer

Symfony Resend Mailer Bridge

10121.3k2](/packages/symfony-resend-mailer)

PHPackages © 2026

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