amarna 0.1.0 copy "amarna: ^0.1.0" to clipboard
amarna: ^0.1.0 copied to clipboard

Laravel-style mailables and SMTP delivery for Maat applications.

example/example.dart

import 'package:amarna/amarna.dart';

class WelcomeMail extends Mailable {
  @override
  Envelope envelope() => const Envelope(subject: 'Welcome');

  @override
  Content content() => const Content(text: 'Thanks for joining.');
}

Future<void> main() async {
  final transport = ArrayTransport();
  final mailer = Mailer(
    transport,
    from: const Address('hello@example.com', 'Example'),
  );

  await mailer.to('ada@example.com').send(WelcomeMail());
  print(transport.emails.single.subject);
}
0
likes
150
points
0
downloads

Documentation

API reference

Publisher

verified publishergaitco.com

Weekly Downloads

Laravel-style mailables and SMTP delivery for Maat applications.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

khnum_maat, maat, mailer

More

Packages that depend on amarna