Alex Rivera | Logout

Method for email testing

Asked 2008-10-27T20:26:54.543
28

I am writing a program that will be emailing reports out many (~100) clients which I want to test before I spam everyone.

I want to do a test run against my production data and actually send the messages to a SMTP server, but I don't want the SMTP server to actually deliver the messages. I want the server to act like a real SMTP server from the perspective of my application, but instead of delivering messages, I just want it to store the messages, and log what happened.

Is there a SMTP server specifically designed for testing purposes?

Does anyone know of a way to configure exim or postfix to behave like I have described above

What do you use to test a mass-email delivery?

Edit
Report

2 Answers

1

Exim can be configured to accept incoming mails but not deliver them. Look for the keywords queue_only and queue_only_file in the documentation.

answered 2009-03-01T01:11:02.930
0

After not beeing happy with the solutions I found, I ended up writing developmentSMTP, easy to use, 100% Java --> cross platform.

Supports writing emails to file, forwarding emails or simply printing them on stdout.

answered 2012-11-28T14:06:55.837

Your Answer