rsthn / rose-ext-wind-sendgrid
Wind 的 SendGrid 适配器
1.0.5
2021-10-02 08:52 UTC
Requires
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>' )