Search packages, repositories and app categories

Package detailsv0.1.3

sendgrid_mailer

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

AndroidiOSWebmacOSWindowsLinux
30-day downloads
361
Likes
45
Pub points
120

Install package

flutter pub add sendgrid_mailer

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Dart library that enables developers to compose and send emails via the SendGrid v3 Mail Send API. It provides a straightforward interface for integrating email functionality into Flutter applications across multiple platforms. The package handles authentication, message formatting, and API communication, making it easy to send transactional or promotional emails programmatically. Ideal for user notifications, password resets, and automated alerts.

Use cases

  • Sending transactional emails
  • User registration confirmations
  • Password reset links
  • Automated notifications
  • Marketing campaign emails

Key features

  • Supports SendGrid v3 Mail Send API
  • Cross-platform compatibility
  • Easy email template integration
  • Authentication via API key
  • Built-in error handling

Suitable for

  • Flutter apps needing email delivery
  • Backend services with Flutter frontends
  • Apps requiring automated email workflows
  • Developers using SendGrid for email sending

Considerations

  • Requires a SendGrid API key
  • Dependent on internet connectivity
  • Rate limits apply based on SendGrid plan
  • Not suitable for high-volume bulk email without optimization

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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.

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package

No data available yet.