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].
0 comments
Hide comments