?
Solved

Sending email from a servlet - authentication problem

Posted on 2005-03-01
3
Medium Priority
?
276 Views
Last Modified: 2010-04-06
Hi, I'm trying to send an email from a java servlet, using JavaMail.  I dont know anything about SMTP but I'm trying to use my yahoo account as the from address and smtp.mail.yahoo.com as the smtp server but I'm getting the following error:

javax.servlet.ServletException: Sending failed;
  nested exception is:
      class javax.mail.AuthenticationFailedException


Can anybody help me with this?
0
Comment
Question by:mccoole
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Accepted Solution

by:
ayeen earned 1400 total points
ID: 13456956

most probably yahoo has a mechanism to  block the outsiders to use their mail server............... this can either be setting up a password or security certificate for their mail servers that's why you are getting the AuthenticationFailedException error.............  

also, the protocol of yahoo doesn't allow/use smtp....i think they are using imap


:)

0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question