tags:

views:

36

answers:

2

I am working on generating emails using Java. I would love to use some sort of system where I can send out mass emails and ensure that the emails were received by the intended recipient (A. My code to send the emails worked and B.The emails were not marked as spam). How can I do this without setting up (and keeping track of) a couple hundred email addresses and then checking each one individually?

Thanks!

+1  A: 

Whenever I've needed to test a system like this, I simply use an override property in the code that substitutes my own email address, creating a loopback test.

I don't know how you're going to test the "not marked as spam" thing, without having at least a handful of test accounts at various providers. Every email provider uses different bayesian filters to filter out spam.

Robert Harvey
+2  A: 

Jeff Atwood's latest blog post talks about several things you need to do when sending email to users:

David
Omg! That article makes me want to cry. I don't want to go through that pain :'(
Mark
Try http://postmarkapp.com - I know this is a bit of an old question, but, it may still be relevant to others. Postmark handles all the complex server-side stuff for you, and makes it 99% likely not to end up in spam.
Jack Webb-Heller