mmsgi-library/entra-mailer 问题修复 & 功能扩展

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

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

mmsgi-library/entra-mailer

最新稳定版本:v1.1.0

Composer 安装命令:

composer require mmsgi-library/entra-mailer

包简介

Send email via Microsoft Entra OAuth2 in Laravel

README 文档

README

Send emails using Microsoft Entra ID (Azure AD / Microsoft 365) with OAuth2 authentication via Microsoft Graph API.

✨ Features

  • OAuth2 (Client Credentials) Authentication
  • Uses Microsoft Graph API to send email
  • Laravel Service Provider and Config publish
  • Supports Laravel Mailer driver integration (custom mailer)
  • Easy to use with Mail::to(...)->send(...)

🛠 Installation

composer require mmsgi-library/entra-mailer
php artisan vendor:publish --tag=config


## ENV setting
MAIL_MAILER=entra
ENTRA_CLIENT_ID=your_client_id
ENTRA_CLIENT_SECRET=your_client_secret
ENTRA_TENANT_ID=your_tenant_id
ENTRA_FROM_ADDRESS=your_sender@domain.com
ENTRA_FROM_NAME=Your Name

## Configuration

Add this to your `config/mail.php`:

```php
'mailers' => [
    ...
    'entra' => [
        'transport' => 'entra',
    ],
],

## use
Mail::mailer('entra')->to('target@example.com')->send(new YourMailable());

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-23