Authentication Failed exception - In the middle of bulk mail sending code.
- by Ezhil
We have a thread program that sends bulk mail.
The information like
1. To
2. Subject Etc.,
are fetched from database, mail is composed and pushed to SMTP server.
One of our customer sent a bulk mail with 2390 email.
After sending 40 emails, suddenly the following exception occurred
EXCEPTION
javax.mail.AuthenticationFailedException
STACKTRACE
javax.mail.Service.connect(Service.java:306)
javax.mail.Service.connect(Service.java:156)
javax.mail.Service.connect(Service.java:105)
...............
java.lang.Thread.run(Thread.java:619)
and the rest 2350 emails failed.
Why does this occur?
Thanks for the Suggestions and Help
Ezhil