• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sending email via Servlet Problem.  RSS feed

 
Alex Marks
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone.
I have a strange problem with sending email via a servlet. The code was fine and i am able to send the email. But after sending about 3 times with a account (yahoo or gmail), i encounter an exception: javax.mail.AuthenticationFailedException. Then I change to another account. It works fine. After 3 times, the exception occurs again.
Please help me with this problem.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried it with a regular mail server rather than one of these big multiuser systems? It's quite likely that they have automated anti-spam software in place to prevent repeated automated emails from the same account.

Why not try running a Java SMTP server locally (something like Apache James might be a good start) and test against that.
 
Alex Marks
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Frank Carver for your suggestion, i will try! Hava a nice day !
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!