How to change mailMessage.Sender.Address


#1

Is it possible to change my created mailMessage’s Sender properties like Address, DisplayName.
I’m trying to assign a new value but I get this error

It works when I’m changing mail.Subject


#3

Yes, but I try to assign my own Sender name, not to get it from mailMessage