sainisch-sczepanski-streller/laravel-graph-api-mail-driver 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sainisch-sczepanski-streller/laravel-graph-api-mail-driver

最新稳定版本:1.0.4

Composer 安装命令:

composer require sainisch-sczepanski-streller/laravel-graph-api-mail-driver

包简介

Send Emails via Microsoft Graph API from your Laravel 10 Project.

README 文档

README

Send Emails via Microsoft Graph API from your Laravel 10 Project.

Description

Minimal Mail driver to send E-Mails via Microsoft Graph API in Laravel.

Don't forget the app permissions and policies in the Graph API. For further info see: Microsoft Docs

Getting started

install

composer require sainisch-sczepanski-streller/laravel-graph-api-mail-driver

.env

MAIL_FROM_ADDRESS=<your sender address>
MAIL_MAILER=microsoft-graph-api
MAIL_MS_GRAPH_CLIENT_ID=<your client id>
MAIL_MS_GRAPH_CLIENT_SECRET=<your client secret>
MAIL_MS_GRAPH_TENANT_ID=<your tenant id>
MAIL_MS_GRAPH_SAVE_TO_SENT_ITEMS=<bool>

config/mail.php

'mailers' => [

        'microsoft-graph-api' => [
            'transport' => 'microsoft-graph-api',
            'client_id' => env('MAIL_MS_GRAPH_CLIENT_ID'),
            'client_secret' => env('MAIL_MS_GRAPH_CLIENT_SECRET'),
            'tenant_id' => env('MAIL_MS_GRAPH_TENANT_ID'),
            'saveToSentItems' => env('MAIL_MS_GRAPH_SAVE_TO_SENT_ITEMS', true),
        ],
...

Usage

Use it like any other Laravel mail driver

 Mail::to([<recipients>])->send(<your mail class>);

Compatibility

Built and tested in Laravel 10

Contributors

License

The MIT License (MIT). Please see license file for more information.

统计信息

  • 总下载量: 651
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-05