搜索插件、代码仓与 APP 分类

插件详情v0.1.3

sendgrid_mailer

一个用于使用 SendGrid v3 Mail Send API 组合和发送电子邮件的 Dart 库。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
361
喜欢数
45
Pub 分数
120

安装插件

flutter pub add sendgrid_mailer

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个 Dart 库,使开发者能够通过 SendGrid v3 Mail Send API 组装和发送电子邮件。该库为在多个平台的 Flutter 应用程序中集成电子邮件功能提供了简单明了的接口。该包处理身份验证、消息格式化和 API 通信,使编程方式发送事务性或促销性邮件变得轻松。非常适合用户通知、密码重置和自动警报。

适合场景

  • 发送事务性电子邮件
  • 用户注册确认
  • 密码重置链接
  • 自动通知
  • 营销活动电子邮件

主要特点

  • 支持 SendGrid v3 邮件发送 API
  • 跨平台兼容性
  • 轻松集成电子邮件模板
  • 通过 API 密钥进行身份验证
  • 内置错误处理

适合对象

  • 需要电子邮件发送的Flutter应用
  • 带有Flutter前端的后端服务
  • 需要自动化电子邮件工作流的应用程序
  • 使用 SendGrid 发送邮件的开发人员

使用建议

  • 需要 SendGrid API 密钥
  • 依赖互联网连接
  • 根据SendGrid计划应用速率限制
  • 未经优化,不适合高容量批量邮件

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

sendgrid_mailer

sendgrid_mailer is a simple library for composing and sending emails using the SendGrid v3 Mail Send API.

Example

import 'package:sendgrid_mailer/sendgrid_mailer.dart';

main() async {
  final mailer = Mailer('<<YOUR_API_KEY>>');
  final toAddress = Address('to@example.com');
  final fromAddress = Address('from@example.com');
  final content = Content('text/plain', 'Hello World!');
  final subject = 'Hello Subject!';
  final personalization = Personalization([toAddress]);

  final email =
      Email([personalization], fromAddress, subject, content: [content]);
  mailer.send(email).then((result) {
    // ...
  });
}

License

This library is licensed under MIT.

所属分类

依赖

依赖清单 2 项

源码仓库

使用此插件的项目

暂无相关数据。