FLUTTER ECOSYSTEM

dylanshine/sendgrid_mailer

dylanshine/sendgrid_mailer open-source repository details.

sendgrid_mailer project cover
Stars
6
Forks
20
Last push (UTC)
Jun 28, 2024
Project status
Active
Dylan Shine GitHub avatar
GITHUB User

Dylan Shine ↗

@GoogleDenver, CO
LanguagesDart

Packages published by this repository

Dependencies used

Dependency list 2 items

Original README

English project snapshot. Visit GitHub for the latest content.

Expand / collapse project 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.