craftcms / postmark
Craft CMS 的 Postmark 适配器
3.1.0
2024-03-19 21:01 UTC
Requires
- php: ^8.0.2
- craftcms/cms: ^4.0.0-alpha.1|^5.0.0-beta.1
- symfony/postmark-mailer: ^v6.0.3|^7.0
Requires (Dev)
- craftcms/ecs: dev-main
- craftcms/phpstan: dev-main
- craftcms/rector: dev-main
This package is auto-updated.
Last update: 2024-08-27 21:30:54 UTC
README
Craft CMS 的 Postmark 插件
此插件为 Postmark 提供了 Craft CMS 的集成。
要求
此插件需要 Craft CMS 4.0.0+ 或 5.0.0+。
安装
您可以从插件商店或使用 Composer 安装此插件。
从插件商店
转到项目控制面板中的插件商店,搜索“Postmark”,然后在模态窗口中点击“安装”按钮。
使用 Composer
打开您的终端,并运行以下命令
# go to the project directory cd /path/to/my-project.test # tell Composer to load the plugin composer require craftcms/postmark # tell Craft to install the plugin ./craft plugin/install postmark
设置
安装 Postmark 后
- 转到 设置 → 电子邮件。
- 将 传输类型 设置更改为 Postmark。同时,确保您的 Craft 电子邮件设置中的系统电子邮件地址与您在 Postmark 中确认的 发件人签名电子邮件地址 相匹配。
- 输入您的 服务器令牌(您可以在“API 令牌”部分下的 服务器 页面上获取)。
- 如果您希望使用自定义的 消息流 发送邮件,请设置 消息流 ID。如果留空,则默认使用事务性消息流。
- 点击 保存。
提示:您可以使用环境变量设置服务器令牌和消息流 ID 设置。有关更多信息,请参阅 Craft 文档中的 环境配置。