Why header fields are converted to lower case when usingMailMessage.Headers.Add(...)?

Discussion in 'ASP .Net' started by Afshar, Oct 8, 2008.

  1. Afshar

    Afshar Guest

    Hi all,

    After running following code, "My-Header" turns to "my-header" in
    email received by destination. I want it to be sent just like "My-
    Header". I don't love any case convert no "upper" nor "lower".

    MailMessage mail = new MailMessage("",
    "", "test", "Hello");
    mail.Headers.Add("My-Header", "123");
    SmtpClient client = new SmtpClient();
    client.EnableSsl = true;
    client.Send(mail);

    Thanks in Advance
    Afshar, Oct 8, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    4
    Views:
    696
    J├╝rgen Exner
    Dec 7, 2004
  2. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,661
    Smokey Grindel
    Dec 2, 2006
  3. Janice

    lower case to upper case

    Janice, Dec 10, 2004, in forum: C Programming
    Replies:
    17
    Views:
    1,144
    Richard Bos
    Dec 14, 2004
  4. Chris Snell

    Missing functions in h2ph converted headers

    Chris Snell, Oct 24, 2004, in forum: Perl Misc
    Replies:
    1
    Views:
    123
    Ben Morrow
    Oct 24, 2004
  5. penny
    Replies:
    28
    Views:
    2,323
    Charlton Wilbur
    Mar 10, 2008
Loading...

Share This Page