RSS 2.0 Feed
RSS 2.0

Atom 1.0 Feed
Atom 1.0


Dave Wanta (of and has put together some really great info on the System.Web.Mail namespace at This FAQ is one of the most amazing & complete .NET resources I've seen in a while. Really awesome stuff.

You can find all kinds of undocumented stuff here. For example, many might say that you cannot send authenticated SMTP via the System.Web.Mail namespace. But Dave says phooey and gives a clear example in his FAQ. How about adding custom headers, like a Reply-To header? He's got an example for that too and another for adding your own custom headers.

One unrelated thing about the site that was cool is it's great use or URL rewriting. I love that stuff. But you know, it's guys like Dave that make me feel like I don't contribute enough to the online programming community.


Leave a comment below.


  1. Dustin 2/16/2005 12:48 PM
    I figured out

    mailMsg.Headers.Add("Reply-To", "");

    mailMsg.Headers.Add("X-Message-Flag", "Follow Up");

    for setting reply-to and the Outlook reminder flag, but I can't figure out how to set the Reply-By date/time. It doesn't look possible. :-(
  2. Ryan Farley 2/16/2005 2:32 PM

    That is pretty sweet. Do you think the Reply-by would be:

    mailMsg.Headers.Add("Expiry-Date", "Sat, 19 Feb 2005 18:00:00 -0600");

    or would that not be the same thing?

  3. Dustin 2/17/2005 10:47 AM
    That doesn't affect it either. I also tried

    mailMsg.Headers.Add("Expiry-Date", DateTime.Now.AddDay(-7).ToString());

    It seems like this should be possible. :-(

  4. Audun 3/3/2005 1:49 AM
    I think this should work :=)
    (just look at the headers from your mail client)

    mailMsg.Headers.Add("Reply-By", DateTime.Now.AddDay(-7).ToString());

  5. 9/19/2009 1:10 AM
    ybuaybxe - Google Search
  6. 9/19/2009 2:20 AM
    povjbsip - Google Search
Comments have been closed on this topic.



Also see my CRM Developer blog