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

J

Joe Abou Jaoude

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 <[email protected]>.
However i want it to be displayed this way:
"some name" <[email protected]>.

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top