News Feed
Sections




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

Developer Tutorials Blog:
Testing email routines in web applications
July 17, 2008 @ 08:49:16

On the Developer Tutorials blog, there's a recent example of how to validate a common task of many signup forms - if the email sent is actually received.

For any web developer that's ever had to build a signup routine, email is the necessary evil that takes pride of place among hated activities. Sure, a simple call to the language's mail library will send a message through, but the moment the boss wants a HTML email, or users need attachments, everything starts to get tricky.

They try to solve the mail return issue (it tells if the message has gone to the queue, not been delivered) with a little testing and Fakemail. The software looks for emails based on the configuration given and pulls them out to a local directory. Your script can then look here and check the validity of the message before its sent.

This even allows for integration with things like Phing, SimpleTest and Selenium.

0 comments voice your opinion now!
test unittest selenium simpletest phing email fakemail


blog comments powered by Disqus

Similar Posts

PHPMaster.com: Taking Advantage of PHP's Built-in Server

SitePoint PHP Blog: pTest: PHP Unit Tester in 9 Lines Of Code

PHP.net: PHP 5.2.10RC2 and PHP 5.3.0RC3 Release Announcements

VulgarisOverIP: Send email with PHP and GMail hosted for your domain

Lars Strojny's Blog: Leaflet: PHP development in 2009


Community Events





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


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

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