yahoo-mail

Sending mail from yahoo id to other email ids using Javamail API

*爱你&永不变心* 提交于 2019-11-26 16:57:54
问题 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. import javax.mail.*; import javax.mail.internet.*; import java.util.Properties; public class MailExample { private static final String SMTP_HOST_NAME = "smtp.mail.yahoo.com";