Last updated:
0 purchases
resend
resend dart #
Dart library for the Resend API.
Platform Support #
Android
iOS
MacOS
Web
Linux
Windows
✅
✅
✅
✅
✅
✅
Setup #
First, you need to get an API key, which is available in the Resend Dashboard.
Usage #
Import package:resend/resend.dart
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
Resend(apiKey: "re_123456789");
return MaterialApp(
...
);
}
}
copied to clipboard
Create Instance of Resend #
final resend = Resend.instance;
copied to clipboard
Usage #
Send your first email:
resend.sendEmail(
from: '[email protected]',
to: '[email protected]',
subject: 'hello world',
text: 'it works!',
);
copied to clipboard
Send email using HTML #
Send an email custom HTML content:
resend.sendEmail(
from: '[email protected]',
to: '[email protected]',
subject: 'hello world',
html: '<strong>it works!</strong>',
);
copied to clipboard
Learn more #
API Documentation
Plugin documentation website
License #
MIT License
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.