mailtm_client 1.0.5 mailtm_client: ^1.0.5 copied to clipboard
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.
import 'package:mailtm_client/mailtm_client.dart';
void main() async {
MailTm client = await MailTm.init(canSave: false);
Account acc = await client.createAccount();
List<Message> messages = await acc.getMessages();
for (int i = 0; i < messages.length; i++) {
print('''${i + 1} message:
${messages[i].from['name']}:
${messages[i].text}
''');
}
}