• Post Reply Bookmark Topic Watch Topic
  • New Topic

JAVA Mail Problem..  RSS feed

 
Ali Haider
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I'm trying to send mail using Java mail but its giving me the following error:
javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: Could not connect to SMTP host: smtp.mail.yahoo.com, port: 25;

Reply soon
Thanx
bye
Ali
 
Sarath Mohan
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Did you set up a SMTP server? if not You have to set up first that. And you have to specify the machine name in your mail program
Please write in detail.
thanks
Bin
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!