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.
Developed with 💙 and maintained by scial.app
Feature | Available |
---|---|
Send Email | ✅ |
Retrieve Email | ✅ |
Send Batch Emails | ✅ |
Feature | Available |
---|---|
Add Domain | ✅ |
Retrieve Domain | ✅ |
Verify Domain | ✅ |
Update Domain | ✅ |
List Domains | ✅ |
Delete Domain | ✅ |
Feature | Available |
---|---|
Create API key | ✅ |
List API keys | ✅ |
Delete API key | ✅ |
Feature | Available |
---|---|
Add Audience | ✅ |
Retrieve Audience | ✅ |
Delete Audience | ✅ |
List Audiences | ✅ |
Feature | Available |
---|---|
Add Contact | ✅ |
Retrieve Contact | ✅ |
Update Contact | ✅ |
Delete Contact | ✅ |
List Contacts | ✅ |
In the dependencies
section of your pubspec.yaml
, add the following line:
dependencies:
dart_resend: <latest_version>
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.'));
Always open for contribution! Contributors will be listed here.