mailgw_client 2.1.0 copy "mailgw_client: ^2.1.0" to clipboard
mailgw_client: ^2.1.0 copied to clipboard

This package is a simple but complete mail.gw 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:mailgw_client/mailgw_client.dart';

void main() async {
  GWAccount account = await MailGw.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'));
    }
    await subscription.cancel();
  });
}
2
likes
120
pub points
0%
popularity

Publisher

verified publisherrandomdevs.org

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

dio, mercure_client

More

Packages that depend on mailgw_client