How can I add an alias when sending mail using Mail.MailMessage in VB.NET?

I would like to do this:

Dim msg As new Mail.MailMessage

msg.From = MagSoft <magnus@company.com>

msg.Send

But this picks up my real name Magnus Österberg (stored in the SMTP server?)
and shows that as sender when I view the e-mail in Outlook.

Re: Setting a from alias when sending mail using Mail.MailMessage by Amil

Amil
Thu Mar 24 09:20:57 CST 2005

This is a smtp server setting; doesn't have anything to do with the
framework. Look into your smtp server settings.

Amil

"Magnus Österberg" <magnus.osterberg@abo.fi> wrote in message
news:OlwVUpFMFHA.3076@TK2MSFTNGP14.phx.gbl...
> How can I add an alias when sending mail using Mail.MailMessage in VB.NET?
>
> I would like to do this:
>
> Dim msg As new Mail.MailMessage
>
> msg.From = MagSoft <magnus@company.com>
>
> msg.Send
>
> But this picks up my real name Magnus Österberg (stored in the SMTP
server?)
> and shows that as sender when I view the e-mail in Outlook.
>
>
>
>
>
>
>
>
>
>
>
>