- Change:
This tip is only valid if you are using .NET
Check this one . If you install it appropriately, it will just save your emails to disk :)
SmtpClient client = ...; client.PickupDirectoryLocation = @"c:\foo\emails\";
- Change
Just in case, some people do not get this, this means that you do not need another SMTP server for test / dev, you just set the variable accordingly.
- Change
For completeness, as shown below, marc_s , you can set this in configurations with:
<system.net> <mailSettings> <smtp deliveryMethod="SpecifiedPickupDirectory"> <specifiedPickupDirectory pickupDirectoryLocation="c:\foo\emails\" /> </smtp> </mailSettings> </system.net>
Noon Silk Aug 30 '09 at 8:38 2009-08-30 08:38
source share