sendgrid_mailer

Creator: coderz1093

Last updated:

Add to Cart

Description:

sendgrid mailer

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) {
// ...
});
}
copied to clipboard
License #
This library is licensed under MIT.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.