Test Email Notification without configuring SMTP Server
Recently, I need to provide Email notification functionality in one of my projects. The problem was that application live server is not SMTP configured. But we need to code this function (Email Notification) ASAP, so that we can go live as soon as our live server is ready with SMTP.
So, I need to find a way to Test various Email notifications without SMTP.
After some searching, I found following simple way to do the same:
<system.net>
<mailSettings>
<smtp deliveryMethod="SpecifiedPickupDirectory">
<specifiedPickupDirectory pickupDirectoryLocation="D:\MyApps\MyProject\" />
</smtp>
</mailSettings>
</system.net>
After above settings are applied to application web.cofig file, all
your emails will be dropped into location specified in
"pickupDirectoryLocation"(D:\MyApps\MyProject\ for above setting).
Hope this helps and please let me know if there are better alternatives than this one.