颤振:邮件

问题描述

在我的应用程序中,如果用户要发送邮件,我正在使用邮寄程序进行退款。它可以正常工作,但唯一的问题是密码以纯文本形式可见。在不显示密码或其他更好的选择的情况下,我该如何改善呢?非常欢迎您提出建议和建议

void sendmail() async {
  final myFeedback = TextEditingController();

  String username = ‘[email protected]';
  String password = ‘my password’;
  final smtpServer = gmail(username,password);
  final message = Message()
    ..from = Address(username,email)
    ..recipients.add(username)
    ..subject = 'FeedBack '
    ..html = "<h1>FeedBack:</h1>\n<h3>$feed</h3>";
  try {
    var sendReport = PersistentConnection(smtpServer);
    await sendReport.send(message);
    await sendReport.close();
    print('Message sent: ' + sendReport.toString());
  } on MailerException catch (e) {
    print('Message not sent.');
    for (var p in e.problems) {
      print('Problem: ${p.code}: ${p.msg}');
    }
  }
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)