MailMessage setting the Senders Name

Viewed 48295

Is it possible to set the sender name on a MailMessage object? I tried setting it from MailAddress, but the DisplayName property seems to be read only.

I tried "My Name " as the sender and don't seem to work either.

3 Answers
MailMessage mail = new MailMessage();
mail.From = new MailAddress("nerfDeathKnights@mycompany.com", "Bob Jones" );
Related