You can do this by formatting the To property correctly.
Ammar, I'm guessing your current To property looks something like the
following:
MailMessage m = new MailMessage();
m.To = "my*******@mydomain.com";
Instead, try:
m.To = "My Name <my*******@mydomain.com>";
You can read RFC 822 to get all the nitty gritty details and options.
http://www.faqs.org/rfcs/rfc822.html
--
Scott
http://www.OdeToCode.com
On Wed, 7 Jul 2004 12:16:12 -0400, "Rob T"
<RT*********@DONTwalchemSPAM.com> wrote:
I don't think you can....you will most likely need a 3rd party package.
"Ammar" <am**********@comhem.se> wrote in message
news:Dg********************@newsc.telia.net... Hi all....
Sending e-mails by ASP.NET is quite easy and flexible....
But i have a small problem:
How do i send the sender's name with the e-mail? when i send ASP.NET mail
using the SmtpMail.Send() i get the sender's e mail address in the name
feild of the inbox of the recepient.
I even looked att the System.Web.Mail.MailMessage class but couldnt find
the answer.
any suggestions?
Ammar