shrd / laravel-microsoft-graph-mailer
Adds a mailer transport that sends emails using the microsoft graph API.
Installs: 11 242
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >= 8.2
- illuminate/contracts: ^11.0
- shrd/laravel-azure-identity: ^0.5.2
- symfony/mailer: ^7.0
Requires (Dev)
- orchestra/testbench: ^8.21
- phpunit/phpunit: ^10.5
- psalm/phar: ^5.20
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