How not to spam everyone when testing email sending (assuming I don’t want to just turn off email sending).

mysql> update users set email = concat(email, '.xx') where email not like 'laurel%';

1 Response to “How not to spam everyone when testing email sending”

  1. Wes Maldonado Says:
    If you're only wanting to see the results of the message, you can run your own SMTP server on via “python -m smtpd -n -c DebuggingServer localhost:1025” It will start up a simple SMTP server which dumps received e-mails to the terminal instead of forwarding them on. Found via http://simonwillison.net/2009/Jan/29/smtp/ Also, unless I'm testing HTML email or need to see it rendered in GMail, Hotmail, etc I avoid this problem by using Rail Mail http://nullstyle.com/railmail/

Sorry, comments are closed for this article.