• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

javamail jsp problem

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to other Java APIs since this really isn't a JSP issue.
reply
    Bookmark Topic Watch Topic
  • New Topic