Last updated:
0 purchases
mailgun mailer
Mailgun_mailer flutter
Features #
Mailgun_mailer is a simple library for composing and sending emails
Example #
import 'dart:developer';
import 'package:mailgun_mailer/src/mailer.dart';
import 'package:mailgun_mailer/src/model/request.dart';
void main() async {
final apiKey = '< APIKEY >';
final domain = '< DOMAIN >';
try {
final mailService = MailgunMailer(
apiKey: apiKey,
domain: domain,
);
final email = MailRequest(
content: 'Hola Mundo con MailGun Mailer !!!',
from: 'ejemplo <[email protected]>',
to: [' [email protected]'],
subject: 'Hola desde MailGun Mailer !!!',
);
await mailService.send(email);
} catch (e) {
log('Error: $e');
}
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.