enough_mail 0.0.7 enough_mail: ^0.0.7 copied to clipboard
IMAP and SMTP clients in pure Dart. Strives to be compliant with IMAP4 rev1, IMAP IDLE, IMAP METADATA Extension and SMTP.
example/enough_mail_example.dart
import 'package:enough_mail/enough_mail.dart';
void main() async {
var client = ImapClient(isLogEnabled: true);
await client.connectToServer('imap.example.com', 993, isSecure: true);
var loginResponse = await client.login('user.name', 'secret');
if (loginResponse.isOkStatus) {
var listResponse = await client.listMailboxes();
if (listResponse.isOkStatus) {
print('mailboxes: ${listResponse.result}');
}
}
}