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
 

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

Similar Threads

How to embade an image into email using mail.mailmessage in ASP.NE 3
need help 5
Sending Mails 2
need help 1
Emailing Errors from Pages 4
Sending Email 1
Sending E-mail 1
Sending Mail To Outlook 1

Back
Top