Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to send mail using smtp.mail.yahoo.com host  RSS feed

 
prakash narkodu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
iam trying to send mail using smtp.mail.yahoo.com but it is giving the following error

Exception in thread "main" javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: 530 authentication required - for help go
to http://help.yahoo.com/help/us/mail/pop/pop-11.html
at javax.mail.Transport.send0(Transport.java:219)
at javax.mail.Transport.send(Transport.java:81)
at testsmtp1.postMail(testsmtp.java:42)
at testsmtp.main(testsmtp.java:51)
Press any key to continue...
we are able to send mail through local mail server.but getting problem when trying to send through yahoo mail
so if i want to send mail using smtp.mail.yahoo.com host how can i send?
whether it is possible or not? if so how? or we can send only through local mail server?
thanking
 
Murali Nanchala
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you visit that URL? It says that Yahoo SMTP services now need authentication.
Try to get authenticated by using the setPasswordAuthentication() method on the session.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!