Tuesday, July 1, 2008

How to check email works without using SMTP

This is tip is helpful to check the sending of emails from your code without actually installing SMTP. Maybe in your local development machine.

You can find your mails posted in the directory mentioned below after you send a mail by code.

<system.net>
<mailsettings><smtp deliverymethod="SpecifiedPickupDirectory"> <specifiedpickupdirectory pickupdirectorylocation="c:\Test\">
</smtp>
</mailsettings>
</SYSTEM.NET>

Source of this tip : http://dotnettipoftheday.org/tips/smtp-delivery-methodSpecifiedPickupDirectory.aspx

No comments: