Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

Sending email from a servlet - authentication problem

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
mccoole
Asked:
mccoole
1 Solution
 
ayeenCommented:

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now