In web.config or app.config, there is a setting that can accomplish that for you:
If you install an eml-viewer or maybe just a regular mail client, you can open and read the mails from the folder you specified.<system.net> <mailSettings> <smtp deliveryMethod="SpecifiedPickupDirectory"> <specifiedPickupDirectory pickupDirectoryLocation="c:\Temp\Mail"/> </smtp> </mailSettings> </system.net>
Source:
http://stackoverflow.com/questions/567765/how-can-i-save-an-email-instead-of-sending-when-using-smtpclient
No comments:
Post a Comment