• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javamail jsp problem

 
Jitesh Ranavaya
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm trying send an email via tomcat using javamail. But I get the following error:

javax.servlet.ServletException: Sending failed;
nested exception is:
class javax.mail.MessagingException: 530 authentication required - for help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html


I did go to the yahoo url above, but couldn't find any help.

Heres my code:


Please somebody help!
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does Yahoo allow you to send directly to it's smtp server?
I thought you could only access that from their web interface.
 
Jitesh Ranavaya
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am pretty sure it does allow it, because i'm following an example program from a book. But my program doesn't work for some reason.

Does anyone have any other ideas of how I can efficienty send emails from tomcat?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to test that SMTP server to make sure that it's still up and accepting requests.
You can do that with any mail client, such as Mozilla, Eurodoa, Thunderbird, etc....

A quick glance at your code doesn't reveal any problems.

NOTE: You may want to look into the JNDI mail features of Tomcat.
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-resources-howto.html
The JavaMail section is about half way down the page.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to other Java APIs since this really isn't a JSP issue.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic