cyphersec A blog about Web Application Security and .NET development best practices

28Jun/090

ASP.NET Have emails sent to a folder instead of an SMTP server

While testing, you can have emails sent to a folder on your computer instead of an SMTP server. Just put this in your web.config:
 
<system.net>
         <mailSettings>
              <smtp deliveryMethod="SpecifiedPickupDirectory">
                    <specifiedPickupDirectory pickupDirectoryLocation="c:\Temp\" />
              </smtp>
          </mailSettings>
</system.net>

About Alessio Marziali

Alessio Marziali (MCTS) is a Security Consultant with 9 years of experience developing secure applications with Microsoft .NET in a variety of sectors in UK and Italy. Published technical author with two ASP.NET books currently available for purchase and OWASP Code Crawler Project Leader.
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


CAPTCHA image

No trackbacks yet.