vitrus/symfony-office-graph-mailer
Composer 安装命令:
composer require vitrus/symfony-office-graph-mailer
包简介
Symfony Mailer Bridge for Microsoft Graph Api Client
README 文档
README
Provides integration between the Symfony Mailer and Office365 Graph API.
- Tested on:
Symfony 6.4onphp 8.1Symfony 5.4onphp 7.4
- Should work on all Symfony 5.x, 6.x, 7.x instances
- Feel free to report issues on github if you have them
- Does not require the Microsoft Graph API Client (speaks to Graph API directly)
- No Guzzle or other external libraries needed, uses only Symfony HTTP Client and Symfony Mailer
Installation steps
1 add via composer
composer require vitrus/symfony-office-graph-mailer
2 Tag the transport factory in your services.yaml
We might change this package to be a bundle so this is no longer needed in the future
Vitrus\SymfonyOfficeGraphMailer\Transport\GraphApiTransportFactory: tags: ['mailer.transport_factory']
3 configure mailer to use the microsoft-graph-api scheme in .env (or .env.local)
MAILER_DSN=microsoft-graph-api://{CLIENT_ID}:{CLIENT_SECRET}@{TENANT}
The tenant you use here should have permissions to send e-mail, and have access
to the user you will configure as sender in your e-mails!
Feature: Store in sent items
Messages are automatically stored in Office 365 Sent Items folder, you can disable this with a custom header:
$message = (new Email())->subject($subject); // add (falsy) text header to your Email $message->getHeaders()->addTextHeader('X-Save-To-Sent-Items', 'false');
vitrus/symfony-office-graph-mailer 适用场景与选型建议
vitrus/symfony-office-graph-mailer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 39.9k 次下载、GitHub Stars 达 13, 最近一次更新时间为 2024 年 01 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 vitrus/symfony-office-graph-mailer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vitrus/symfony-office-graph-mailer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 39.9k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-01-18