Show Friendly Name in "From" Email Address

When using System.Web.Mail.MailMessage object to send out an email, to show a friendly name in the "From" address, you can include the friendly name in the "From" property by using parenthesis like this: myMail.From = "[email protected](Mary Smith)"; As a result, the receiver will see the email is from Mary Smith instead of [email protected]

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.