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 usingparenthesis like t
ITPro Today
March 16, 2003
1 Min Read
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 usingparenthesis 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].
About the Author
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
You May Also Like