Jan 9, 2008

How to check email works with no SMTP

There is a way to send e-mails with no SMTP server set up. Just configure your .NET application to drop e-mails into a specified folder instead of sending them via SMTP server



      <smtp deliveryMethod="SpecifiedPickupDirectory">

        <specifiedPickupDirectory pickupDirectoryLocation="c:\Rohit\" />




This will instruct SmtpClient class to generate mail message, save it as .eml file and drop it into c:\Test\ folder

kick it on DotNetKicks.com

1 comment:

Dmitry said...

Wow that is very interesting, thanks for the tip!