shrd / laravel-microsoft-graph-mailer
添加了一个邮件传输,使用Microsoft Graph API发送邮件。
v0.4.5
2024-03-15 17:29 UTC
Requires
- php: >= 8.2
- illuminate/contracts: ^10.0
- shrd/laravel-azure-identity: ^0.4
- symfony/mailer: ^6.4.2
Requires (Dev)
- orchestra/testbench: ^8.21
- phpunit/phpunit: ^10.5
- psalm/phar: ^5.20
README
此软件包是由@shared-digitaltechnologies/nx-php
插件生成的。
配置
将以下配置合并到您的config/mail.php
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?
]
]
]
命令
要创建一个可以被其他PHP应用程序导入的存档文件,运行
nx run laravel-microsoft-graph-mailer:build
要测试此软件包,运行
nx run laravel-microsoft-graph-mailer:test