impaktfull_mailer 0.0.5 copy "impaktfull_mailer: ^0.0.5" to clipboard
impaktfull_mailer: ^0.0.5 copied to clipboard

A dart library for sending emails on backend with a template engine.

impaktfull_mailer #

A dart library for sending emails on backend with a template engine.

Disclaimer #

impaktfull_mailer is still in unstable & untested. everything under <1.0.0 should not be used unless you want to test it

Setup #

Add dependency to pubspec #

pub package

dependencies:
  impaktfull_mailer: `latest_version`

Send an email #

/// Create the mailer
final mailer = ImpaktfullMailer(
  mailSenderService: BrevoMailSenderService(
    email: 'your_brevo_smtp_email',
    password: 'your_brevo_smtp_password',
  ), // or any other mail sender service
  variableReplacer: DelimiterVariableReplacer(
    prefix: '{{', // default
    suffix: '}}', // default
  ), // default
  defaultLocale: 'en',// default
);
/// Create the template
final template = YourTemplate();
/// Send the email
await mailer.sendEmailTemplate(
  fromEmail: 'hello@impaktfull.com',
  to: ['koen.vanlooveren@impaktfull.com'],
  subject: 'Test from the impaktfull_mailer dart package',
  template: template,
);
3
likes
140
points
416
downloads

Publisher

verified publisherimpaktfull.com

Weekly Downloads

A dart library for sending emails on backend with a template engine.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

mailer, path

More

Packages that depend on impaktfull_mailer