@yarlisai/email
邮件发送与验证。支持 Resend + SendGrid + Azure ACS 适配器。
邮件发送与验证。支持 Resend + SendGrid + Azure ACS 适配器。
安装
npm install @yarlisai/email源码:packages/email ·
npm ·
CHANGELOG
为什么选择它
@yarlisai/email 遵循 端口/适配器契约:消费者依赖一个端口(SomeProvider 接口)并在运行时实例化适配器。切换供应商只需修改一行配置。
使用方式
该包的 README 提供了完整的快速入门指南。mybotbox-platform 本身即为参考消费者 —— apps/sat/lib/email/(或类似命名的模块)展示了每个调用点如何直接使用端口而非供应商 SDK。