aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes javax.mail.AuthenticationFailedException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "javax.mail.AuthenticationFailedException" Watch "javax.mail.AuthenticationFailedException" New topic
Author

javax.mail.AuthenticationFailedException

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 726


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

Debug in tomcat logs:


Thanks & best regards
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19557
    
  16

Farakh khan wrote:

That looks a bit dodgy.

What happens if you omit the following line:


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 726
Rob Prime wrote:
What happens if you omit the following line:



I omitted this line and got this
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19557
    
  16

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

Joined: Mar 22, 2008
Posts: 726
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

Joined: Oct 27, 2005
Posts: 19557
    
  16

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.mail.AuthenticationFailedException
 
Similar Threads
javamail question!
exception is coming while sending mail
External Mail "javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart"
cannot send email through Outlook
Sending mail with authentication to Exchange Server 2007