Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Rated
Read 85,987 times

Contents

Related Categories

Custom SMTP in C# - Introduction

randy

Introduction

This series of articles is written to show the user how to write TCP/ IP based client applications using C# on Microsoft's new .NET framework. This is the first article in this series.

The first killer applications on the Internet were email and netnews. Email on the Internet was developed using two simple Internet protocols, SMTP and POP3. The first two articles in this series, I'll present to you two classes for implementing SMTP and POP3 clients. In the third article in this series, I'll present to you one class for implementing a NNTP client. The SMTP or Simple Mail Transfer Protocol is described in RFC 821. This application protocols is used to send email over the Internet.

The .NET framework already contains an SMTP class in the System.Web.Mail namespace called SmtpMail. This class is sufficient for sending email over the Internet and I would not suggest that the class I'm presenting in this article is any better or worse. Let's just say that it is different. If you can get away with using the .NET SmtpMail class, then I suggest you do just that. The only advantage of my class is that it is open source and let me suggest that the SmtpMail class in .NET has a few more features. My motivation in writing this article is not to try and write a better SMTP class, but rather to show how to write TCP/ IP based clients in C#.

Randy's article are Copyright 1998-2003 Randy Charles Morin

Comments

  • receiving emails

    Posted by lesnikowski on 10 Nov 2005

    [url="http://www.lesnikowski.com/mail"]http://www.lesnikowski.com/mail[/url]

  • receiving emails

    Posted by lesnikowski on 10 Nov 2005

    Try using this library:
    [url="http://www.lesnikowski.com/mail"]http://www.lesnikowski.com/mail[/url]

    It's simple and effective.
    Allows sending, receiving and parsing email messages.
    Encodes/dec...

  • Posted by Michael H on 01 Sep 2004

    well... TO is used for the main person you're sending to.

    CC (and BCC, but the B stands for "Blind" so it's not marked as a copy) are traditionally used to send
    it to others that need to see the l...

  • Posted by arfong on 01 Sep 2004

    I want to ask the same question as well.

  • Posted by Wynand on 14 May 2004

    Yes, but what if you want to code a filter application? Then you need to RECEIVE SMTP BEFORE sending it to SMTP and then POP3 servers.

    So to RECEIVE SMTP or INTERCEPT SMTP packets, does one need to...