Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > MailMessage object: how to show name of sender before the e-mail address

Reply
Thread Tools

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

 
 
Joe Abou Jaoude
Guest
Posts: n/a
 
      02-24-2005


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!
 
Reply With Quote
 
 
 
 
figaro1976 figaro1976 is offline
Junior Member
Join Date: May 2006
Posts: 1
 
      05-10-2006
Itīs very easy,

myMail.From = "Display Name <>"

regards
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RTCP:Can a sender sender reception report blocks in an SR packet for recievers for which it hasn't recieved any RTP data? jon wayne VOIP 0 05-20-2006 12:23 PM
Re: fix a "sender" name in the "sender" field on email Dylan Parry HTML 2 03-19-2005 04:21 PM
Sender Virus-alert (sender: python-list@python.org) Antivirus-Daemon@mercurio.ulpgc.es Python 0 08-20-2003 04:35 PM
Sender Virus-alert (sender: python-list@python.org) Antivirus-Daemon@maciot.ulpgc.es Python 0 08-19-2003 12:40 PM
Why are sender and object used as in sender As System.Object, ByVal e As System.EventArgs? Showjumper ASP .Net 2 08-02-2003 10:53 PM



Advertisments