Click here to Skip to main content
12,621,107 members (36,317 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

5.5K views
5 bookmarked
Posted

Create a simple SMTP server in C#

, 21 Nov 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
Please note I don't want to take anything away from roosrj's tip which displays infinitely more in depth knowledge about the SMTP protocol than I can - as a lazy man's alternative I've always used PostCast v2.6 to test anything mail related:...

Please note I don't want to take anything away from roosrj's tip which displays infinitely more in depth knowledge about the SMTP protocol than I can - as a lazy man's alternative I've always used PostCast v2.6 to test anything mail related: http://www.postcastserver.com/download/release.aspx?p=3[^].

I just set it up to listen on a port and don't bother with forwarding the mail on. This way I can use it to not only test my mail sending code, but I also get to see the contents of the mail (useful for inspecting HTML mails), switch between HTML and RTF, and so on - as if I'd sent the mail to my Outlook.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

jim lahey
Software Developer (Senior)
United Kingdom United Kingdom
First batch file in 1987

Messed around with the Bullfrog C++ Libraries for Syndicate in 1994

Web Developer since 2000

.net Developer since 2001

MCTS: Microsoft® .NET Framework 2.0 - Web-based Client Development

MCTS: Web Applications Development with Microsoft .NET Framework 4

You may also be interested in...

Pro

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161128.1 | Last Updated 21 Nov 2011
Article Copyright 2011 by jim lahey
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid