File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mail proliferation

 
wu jong
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 #?.

R
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I cannot get log files (or cannot update the production with newly written code that logs everything).

There is very, very little point trying to debug code without any debug information - it's just guess work. Unless you can get some useful debug you might as well give up.

Why can't you get the log?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13048
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What triggers sending of a single email?
Bill
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)

Thanks

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic