PHPackages                             jornatf/msgraph-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. [API Development](/categories/api)
4. /
5. jornatf/msgraph-mailer

ActiveLibrary[API Development](/categories/api)

jornatf/msgraph-mailer
======================

A Laravel Package to send emails with Microsoft Graph API.

v2.0.1(3y ago)048[2 PRs](https://github.com/jornatf/msgraph-mailer/pulls)MITPHPPHP ^8.1

Since Apr 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jornatf/msgraph-mailer)[ Packagist](https://packagist.org/packages/jornatf/msgraph-mailer)[ Docs](https://github.com/jornatf/msgraph-mailer)[ RSS](/packages/jornatf-msgraph-mailer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (11)Versions (11)Used By (0)

Msgraph Mailer
==============

[](#msgraph-mailer)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8799a76c6f5b27d4ffaba7a969ed5d5b1e0e9687c441f03ea2bf745623fefc19/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6f726e6174662f6d7367726170682d6d61696c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jornatf/msgraph-mailer)[![GitHub Tests Action Status](https://camo.githubusercontent.com/ffef8b7ca62ee38cc57d91013c7b68725fa1f6e803eae4842ca3d94abc3b64a9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6f726e6174662f6d7367726170682d6d61696c65722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/jornatf/msgraph-mailer/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/3c74b054a46a90ccfd1dc0a1aae3831218836be3432dd893343cdcf9b809c460/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6f726e6174662f6d7367726170682d6d61696c65722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/jornatf/msgraph-mailer/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/ff772ceed68cd8e41c1348571cddffec6d66b2198b9117c9f0f6c2a5fe5d50f9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6f726e6174662f6d7367726170682d6d61696c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jornatf/msgraph-mailer)

A Laravel Package to send emails with [Microsoft Graph API](https://learn.microsoft.com/en-us/graph/use-the-api).

> #### If you like this package you can [Buy me a Coffee](https://www.buymeacoffee.com/jornatf) ☕️
>
> [](#if-you-like-this-package-you-can-buy-me-a-coffee-️)

Installation
------------

[](#installation)

### Via composer:

[](#via-composer)

```
composer require jornatf/msgraph-mailer
```

### Prerequisites:

[](#prerequisites)

Add your [Microsoft Graph](https://learn.microsoft.com/en-us/graph/overview) credentials in the `.env` file:

```
MSGRAPH_CLIENT_ID=your_client_id
MSGRAPH_SECRET_ID=your_secret_id
MSGRAPH_TENANT_ID=your_tenant_id

```

Usage
-----

[](#usage)

### Example:

[](#example)

> This example shows you how to use the basic methods required to send an email.

```
