gpt4 book ai didi

android - 我无法从 Java Mail Api 发送 Yahoo Mail

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:02:13 24 4
gpt4 key购买 nike

我正在使用以下代码在 Yahoo 上发送电子邮件:--

    Properties   props1 = new Properties();
EmailAuthenticator authenticator = new EmailAuthenticator(account);

props1.setProperty("mail.transport.protocol", "smtps");
props1.setProperty("mail.host", "smtp.mail.yahoo.com");
props1.put("mail.smtp.auth", "true");
props1.put("mail.smtp.port", "587");
props1.put("mail.smtp.starttls.enable", "true");
smtpSession = Session.getInstance(props1, authenticator);
smtpSession.setDebug(true);

但我面临 javax.mail.MessagingException [EOF] 我在过去 5 天面临这个问题 我的 LogCat 是:---

  Message-ID:<1082699080.2.1356082481793.JavaMail.javamailuser@localhost>
Subject: Hello
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
554 Transaction failed : Cannot send message due to possible abuse; please visit http://postmaster.yahoo.com/abuse_smtp.html for more information
DEBUG SMTP: got response code 554, with response: 554 Transaction failed : Cannot send message due to possible abuse; please visit http://postmaster.yahoo.com/abuse_smtp.html for more information
RSET
DEBUG SMTP: EOF: [EOF]
javax.mail.MessagingException: [EOF]
com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1481)
com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1512)
com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1321)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:637)
javax.mail.Transport.send0(Transport.java:189)
javax.mail.Transport.send(Transport.java:118)
com.privymo.javamail.EmailManager.sendMail(EmailManager.java:203)

请帮忙谢谢,

最佳答案

错误回溯表明您收到了一条 SMTP 错误消息:

554 Transaction failed : Cannot send message due to possible abuse; please visit http://postmaster.yahoo.com/abuse_smtp.html for more information

虽然特定的 Yahoo!页面不可访问,从消息中可以清楚地看出 Yahoo!怀疑您的邮件可能是垃圾邮件,因此拒绝投递。 thread in the Yahoo! Mail Help Community建议联系Yahoo! Mail Customer Care获取更多信息和帮助。

关于android - 我无法从 Java Mail Api 发送 Yahoo Mail,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13987638/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com