Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.mail.AuthenticationFailedException

 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


The provided login and password is correct as I tested by logging with webmail.

Debug in tomcat logs:


Thanks & best regards
 
Rob Spoor
Sheriff
Pie
Posts: 20669
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Farakh khan wrote:

That looks a bit dodgy.

What happens if you omit the following line:
 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime wrote:
What happens if you omit the following line:



I omitted this line and got this
 
Rob Spoor
Sheriff
Pie
Posts: 20669
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At least your program has made some progress

I believe this is a relaying issue. Your mail server does not allow you to send emails to the "rurex.com.pl" domain. Check the mail server configuration.
 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime wrote:At least your program has made some progress

I believe this is a relaying issue. Your mail server does not allow you to send emails to the "rurex.com.pl" domain. Check the mail server configuration.


This code doesn't allow to send the emails as for all 20,000 emails same error

What I check on my dedicated server?

Thanks & best regards

 
Rob Spoor
Sheriff
Pie
Posts: 20669
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not familiar enough with your mail server program (or any other mail server program, to be honest) to answer that question. I don't think you can get much help here if it's not caused by Java code. Try the site of the mail server program itself.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic