本文介绍了使用 Javamail API 从 yahoo id 向其他电子邮件 id 发送邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!
问题描述
我无法使用 Java 邮件 API 从我的 yahoo id 发送电子邮件.我尝试了谷歌的不同选项,但失败了.请看看我下面的代码,如果我遗漏了什么,请告诉我.在我看来 Yahoo 不提供免费发送邮件的服务,但我不确定.请提供您对此的看法.
I am not able to send email from my yahoo id using Java mail API. I tried different options from Google,but fails. Please have a look my below code and let me know if I am missing something. In my point of view Yahoo does not provide the free service to send mails, but I am not sure. Please provide your thoughts on this.
上面的代码在 Gmail 上运行良好,但在 Yahoo 上却出现如下错误:
The above code works fine for Gmail, but for Yahoo it's giving error like:
我该如何解决这个问题?
How can I solve this?
推荐答案
试试这个代码
这篇关于使用 Javamail API 从 yahoo id 向其他电子邮件 id 发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!
本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!