How to check email works without using SMTP
If you don't have smtp server or you are offline, you can still check you email seeing codes using this easy technique. Also yo can avoid accidentally sending mails to real email ids.
Testing code that sends email has always been a pain. You can be heavily penalized when you are playing with the real customers data just for testing purpose. You had to set up a SMTP service just to test that your .NET application sends the e-mail correctly. However, 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:
This will instruct SmtpClient class to generate mail message, save it as .eml file and drop it into C:\MailDumps\ folder.