rsthn/rose-ext-wind-sendgrid

Wind 的 SendGrid 适配器

安装: 41

依赖项: 0

建议者: 0

安全: 0

星标: 1

关注者: 1

分支: 0

开放问题: 0

类型:rose-extension

1.0.5 2021-10-02 08:52 UTC

This package is auto-updated.

Last update: 2024-09-30 01:40:59 UTC


README

此扩展向 Wind 添加表达式函数,以使用 SendGrid 发送电子邮件。

注意:该扩展检测 Wind 的存在,如果未安装,则该扩展将不会加载。

安装

composer require rsthn/rose-ext-wind-sendgrid

配置部分: Mail

表达式函数

mail::send name:string value:string ...

sendgrid::send name:string value:string ...

发送电子邮件并返回布尔值(true),如果成功发送。错误信息写入系统日志。接受一个或多个 name:value 对。目前支持

示例

(mail::send
	RCPT 'example@host.com'
	SUBJECT 'This is a test.'
	BODY '<b>Thanks for reading this email.</b>'
)