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

outdated

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' as sg;

main() async {

  final mailer = sg.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, content, subject);
    
  mailer.send(email).then((result) => {
  	...
  })	
    
}

License #

This library is licensed under MIT.

43
likes
0
pub points
92%
popularity

Publisher

verified publishershinelabs.dev

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

async, http

More

Packages that depend on sendgrid_mailer