搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。