Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Method for email testing

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?

like image 244
Zoredache Avatar asked Oct 27 '08 20:10

Zoredache


People also ask

What are email testing tools?

Email testing software is a program that allows you to preview your email messages before sending them out to subscribers. Email testing tools enable you to change different elements to see how your email performance changes by editing these elements.

What is email testing called?

Email A/B testing, also known as email split testing, is sending 2 different versions of your email to 2 different sample groups of your email list. The email which receives the most opens and clicks (aka “the winning version”) will be sent out to the rest of your subscribers.


1 Answers

In java you can use dumbster

Its easy to use and you can validate every aspect of the email you are intercepting.

It's a Java SMTP server implementation meant for unit testing. (Just make sure you redirect your email to the machine running dumbster...)


I just found another alternative that do almost the same: Greenmail

Greenmail also support POP3, IMAP with SSL so you can test your client against it.

like image 109
Frederic Morin Avatar answered Sep 29 '22 17:09

Frederic Morin