Handy web.config snippet for sending email in a development environmen(hockblogs.net)
submitted by
hockman(505) 3 years ago
Hi there,
A really handy thing I can use in my web.config while developing is something a collegue of mine pointed me to, and was already mentionded here by Donn Felker:
Sending Email in a Development Environment without an SMTP Server
<system.net>
<!-- Mail -->
<mailSettings>
<smtp deliveryMethod='SpecifiedPickupDirectory'>
<specifiedPickupDirectory pickupDirectoryLocation="c:\tmp" />
</smtp>
</mailSettings>
</system.net>
This is very usable to test mail messages even when you don't have an SMTP server available.
Hope this is usefull!
gr,
Robbert
|category: ASP.NET
|Views: 28
tags:
ASP.NET another
Everyones tags:
Your Tags: