B
B
bO_oblik2012-02-03 10:50:06
PHP
bO_oblik, 2012-02-03 10:50:06

Testing email newsletters

I have the usual XAMPP for Linux 1.7.4 on ubuntu

as well as a script for sending email that works on cron.

How to test the mailing list?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
vart, 2012-02-03
@vart

A simple option is to fill the database with test emails (your own), then change the date / time on the server and see if the necessary emails arrive at the right dates and if anything extra comes.
It would be more correct to set up a local mail server that would receive all outgoing letters from your SMTP and, say, put them in the database, then write a unit test that would set the correct conditions (date, time, data, and everything that may be needed in your mailing list), run mailing script and validated sent letters in the database.
What is the script written in? Most likely, you can simply intercept the call to send a letter and replace it with your own validator, then creating tests will be elementary and there may already be ready-made solutions.

S
Silentium, 2012-02-07
@silentium

There was an excellent article http://habrahabr.ru/blogs/linux/49665/

T
Tiffany Bramson, 2015-02-17
@Tiffany21

emailvoid.com is a dummy smtp server for testing purposes.

V
Vitold S, 2015-10-22
@vit1251

Another dummy mail server: mesghub.com with API access

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question