MailMessage object: how to show name of sender before the e-mail address

Discussion in 'ASP .Net' started by Joe Abou Jaoude, Feb 24, 2005.

  1. hi,

    I m using the MailMessage class to form an e-mail message and send it.

    When the recipient recieves the e-mail the sender address is being
    displayed this way <>.
    However i want it to be displayed this way:
    "some name" <>.

    I tried this code of lign (i thought it might work but it didn't)

    myMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendem
    ailaddress", "some name")

    any help will be appreciated
    thx


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    Joe Abou Jaoude, Feb 24, 2005
    #1
    1. Advertising

  2. Joe Abou Jaoude

    figaro1976

    Joined:
    May 10, 2006
    Messages:
    1
    It´s very easy,

    myMail.From = "Display Name <>"

    regards
    figaro1976, May 10, 2006
    #2
    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. Showjumper
    Replies:
    2
    Views:
    1,805
    Showjumper
    Aug 2, 2003
  2. =?Utf-8?B?TWlja2VCb3k=?=

    Problem with System.Web.Mail.MailMessage and HTML mail

    =?Utf-8?B?TWlja2VCb3k=?=, Jun 15, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    904
    =?Utf-8?B?TWlja2VCb3k=?=
    Jun 21, 2005
  3. Dylan Parry
    Replies:
    2
    Views:
    550
  4. Replies:
    0
    Views:
    395
  5. Replies:
    0
    Views:
    356
Loading...

Share This Page