shrd/laravel-microsoft-graph-mailer

Adds a mailer transport that sends emails using the microsoft graph API.

v0.4.1 2024-03-15 17:29 UTC

This package is auto-updated.

Last update: 2024-05-15 17:51:26 UTC


README

This package was generated by the @shared-digitaltechnologies/nx-php plugin.

Configuration

Merge your config/mail.php with the following:

return [
    "mailers" => [
        "microsoft-graph" => [
            "transport" => "microsoft-graph",
            "credential_driver" => env('MAIL_MICROSOFT_GRAPH_CREDENTIAL_DRIVER'), // Defaults to the default azure credential of the app.
            "save_to_sent_items" => env('MAIL_MICROSOFT_GRAPH_SAVE_TO_SENT_ITEMS', false) // Save the emails in the sent items of the mailbox?
        ]
    ]
]

Commands

To make an archive-file of this package that can be imported by other php applications, run:

nx run laravel-microsoft-graph-mailer:build

To test this package, run:

nx run laravel-microsoft-graph-mailer:test