Setting a from alias when sending mail using Mail.MailMessage

  • Thread starter Thread starter Magnus Österberg
  • Start date Start date
M

Magnus Österberg

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 <[email protected]>

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.
 
This is a smtp server setting; doesn't have anything to do with the
framework. Look into your smtp server settings.

Amil
 
Back
Top