私はメーラー 0.8.1 を使用していて、dartlang でメールを送信するデモ アプリを作成しようとしましたが、機能しません。この私のコード:
var options = new GmailSmtpOptions()
..username = 'my gmail account'
..password = 'my gmail pass';
var emailTransport = new SmtpTransport(options);
var envelope = new Envelope()
..from = 'testmailer@gmail.com'
..recipients.add('testmailer@gmail.com')
..subject = 'Testing mailer'
..text = 'This is test mailer'
..html = '<h1>Test send mail</p>';
.then((success) => print('Email sent! $success'))
.catchError((e) => print('Error occured: $e'));
しかし、アプリを実行しても何も印刷されません。誰かが私を助けることができますか?ありがとう1