v0.1.3
sendgrid_mailer
一个用于使用 SendGrid v3 Mail Send API 组合和发送电子邮件的 Dart 库。
45喜欢 349近 30 天下载120Pub 分数
AndroidiOSWebmacOSWindowsLinux
dylanshine/sendgrid_mailer open-source repository details.
以下为英文项目原文快照,最新内容请访问 GitHub。
sendgrid_mailer is a simple library for composing and sending emails using the SendGrid v3 Mail Send API.
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) {
// ...
});
}
This library is licensed under MIT.
先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗