• Post Reply Bookmark Topic Watch Topic
  • New Topic

SMTPSendFailedException while connecting Yahoo  RSS feed

 
Varun Selva
Ranch Hand
Posts: 48
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I am getting below error while i am connecting yahoomail through Java code.
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Authentication required

But managed to connect with gmail.



Find my code below


I was using different port also. But no luck!!

Any setting need to enable in yahoo???
 
Rob Spoor
Sheriff
Posts: 21048
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've seen you've used the code suggested in http://stackoverflow.com/questions/11356237/sending-mail-from-yahoo-id-to-other-email-ids-using-javamail-api. Did you also check the follow-up post, especially setting the "mail.smtp.starttls.enable" property?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!