Skip to content

coderaveHQ/dart_resend

dart_resend

Resend made easy! 💎

A Dart package for interacting with the Resend API. It provides a set of utilities and models to facilitate integration with Resend's powerful email capabilities.

pub package License

Developed with 💙 and maintained by scial.app

"Buy Me A Coffee"

Supported features

Email

Feature Available
Send Email
Retrieve Email
Send Batch Emails

Domains

Feature Available
Add Domain
Retrieve Domain
Verify Domain
Update Domain
List Domains
Delete Domain

API Keys

Feature Available
Create API key
List API keys
Delete API key

Audiences

Feature Available
Add Audience
Retrieve Audience
Delete Audience
List Audiences

Contacts

Feature Available
Add Contact
Retrieve Contact
Update Contact
Delete Contact
List Contacts

Quick Start 🚀

Installation 🧑‍💻

In the dependencies section of your pubspec.yaml, add the following line:

dependencies:
  dart_resend: <latest_version>

Usage 👽

Import the package:

import 'package:dart_resend/dart_resend.dart';

Create an instance:

late final ResendClient resend;

void main() async {
    final Resend result = Resend.initialize(apiKey: '...');
    resend = result.client;
}

Make use of one of the many methods provided by this package e.g.:

final ResendResult<ResendSendEmailResponse> response = await resend.email
    .sendEmail(
        from: 'scial Developer <[email protected]>',
        to: <String>['[email protected]', '[email protected]'],
        subject: 'Check out this package',
        text: 'WOW! This package is awesome!');

response.fold(
    onSuccess: (ResendSendEmailResponse data) => print('E-Mail sent!'),
    onFailure: (ResendError? error, String? message) =>
        print('Error occured.'));

Contribution 💙

Always open for contribution! Contributors will be listed here.

Releases

No releases published

Packages

No packages published

Languages