This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I am using javax.mail package and sending e-mails. I have very well unit tested the code and it is standard code that sends an e-mail to the recepient via the SMTP server. Now the code is in production and I cannot get log files (or cannot update the production with newly written code that logs everything). The problem is that some recepients are getting the same e-mail thousands of times which is not the expected behavior of the code. Say that my code is 100% correct, what could be the reasons #?.
I'd say the code that gets the e-mail address and addresses the e-mails is staying on either the first or last e-mail address and sending it X amount of times, where x = number of recipient e-mail addresses that are retreived.
Now, the big question is how does this relate to Servlets? This is a Servlets forum for Servlets questions only. We have the Other Api forum for Java Mail Api, which this sounds more for. Or it might just be Java In General (Beginner)