v0.1.3
sendgrid_mailer
A Dart library used to compose and send emails using SendGrid v3 Mail Send API.
45Likes 34930-day downloads120Pub points
AndroidiOSWebmacOSWindowsLinux
dylanshine/sendgrid_mailer open-source repository details.
English project snapshot. Visit GitHub for the latest content.
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.
Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗