laravel-microsoft-graph-mailer maintained by shrd
Description
Adds a mailer transport that sends emails using the microsoft graph API.
Author
Last update
2024/11/06 08:12
(dev-main)
License
Downloads
16 282
Tags
shrd/laravel-microsoft-graph-mailer
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