sendgrid_mailer 0.1.3 copy "sendgrid_mailer: ^0.1.3" to clipboard
sendgrid_mailer: ^0.1.3 copied to clipboard

A Dart library used to compose and send emails using SendGrid v3 Mail Send API.

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.

44
likes
120
points
1.66k
downloads

Publisher

verified publishershinelabs.dev

Weekly Downloads

2024.09.26 - 2025.04.10

A Dart library used to compose and send emails using SendGrid v3 Mail Send API.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

async, http

More

Packages that depend on sendgrid_mailer