mailtm_client 1.1.1 copy "mailtm_client: ^1.1.1" to clipboard
mailtm_client: ^1.1.1 copied to clipboard

outdated

This package is a simple but complete mail.tm api wrapper, you can use this to save and manage your accounts, as well read all your temporary emails.

example/main.dart

import 'dart:async';

import 'package:mailtm_client/mailtm_client.dart';

void main() async {
  TMAccount account = await MailTm.register();
  print('Send a message to the following account: $account');
  late StreamSubscription subscription;
  subscription = account.messages.listen((e) async {
    print('Listened to message with id: $e');
    if (e.hasAttachments) {
      print('Message has following attachments:');
      e.attachments.forEach((a) => print('- ${a.name}'));
    }
    await subscription.cancel();
  });
}
6
likes
0
pub points
29%
popularity

Publisher

verified publisherrandomdevs.org

This package is a simple but complete mail.tm api wrapper, you can use this to save and manage your accounts, as well read all your temporary emails.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, mercure_client

More

Packages that depend on mailtm_client