News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Reddit.com:
How do you test email when in development?
August 31, 2011 @ 12:58:53

In this recent post to Reddit, a question is asked that's an issue for many developers testing the email sending abilities of their applications - how can it be tested effectively without outside services flagging you as a possible spammer.

So how do you guys do it? My current solution is to just output the email template HTML straight to the browser, but this doesn't always work. [...] I have considered sending emails through to my GMail, but I run my tests quite often and I'm not sure Google would be too happy with the amount I send. [...] I'm sure there's a better way I can handle this without modifying my code too much. Suggestions appreciated.

Suggestions from the comments include:

  • a local SMTP/IMAP server configured to catch all emails being sent
  • Changing the address based on an environment flag
  • Using "@example.com"
  • Saving the email as a .msg file for later review

There's also suggestions of other Mac or Windows software to mimic the mail server like smtp4dev and MockStmp

2 comments voice your opinion now!
test email recommendation server imap stmp windows osx


blog comments powered by Disqus

Similar Posts

Suspekt Blog: Suhosin Patch 0.9.8 for PHP 5.3.0 *BETA* - Please Test

PHPEveryDay.com: New Tutorials Posted (WDDX in PHP)

Builder.au: Install, configure and integrate PHP and MySQL on Windows (Server 2003)

Community News: PHP Group Responds to Google's "Speed Tips" Recommendations

php|architect: Webcast: Making PHP faster on IIS


Community Events





Don't see your event here?
Let us know!


interview voicesoftheelephpant framework conference symfony composer library tool community introduction podcast artisanfiles laravel language release opinion version security list series

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework