SMTP: Test emails from local computer during development stage using smtp4dev

Web developers need to work on their website locally once in a while. I use XAMPP in my computer to work on my web projects locally.

I’m about to begin working on a project which sends emails when users register for an account. From the live site, I downloaded it to my computer so I could do updates. I tested the registration form and it failed because email could not be sent. I would usually use phpmailer, but that’s a bit time-consuming to configure, so I wondered if my colleague who worked on it before used a simpler solution. Lucky me, she did find a simpler way to test the emails sent/received on her computer during development.

She shared smtp4dev with me and it worked like a charm. I simply run the EXE file of smtp4dev, tested the registration form again, and it lets me view the content of the email I sent. Sweet. This will be very useful. It does not actually deliver the email, but hey, this is a very quick solution to testing email functions that you coded locally.

Click here to go to the download page for smtp4dev

Catzie

A Filipino programmer and baker. When I have time to spare, I blog, play video games, watch series (usually anime), cook dishes, draw, or spend a little time with pets. When I have the rare luxury of time, I get to travel and record song covers too! Baked-Per-Order Sweets: Catzie's Cakery Follow on Twitter: @catzie

Leave a Reply

Your email address will not be published. Required fields are marked *