Tag: why do i get property cannot be assigned when sending an smtp email - c#

SMTP

Why do I get "'property cannot be assigned" when sending...

mail.To and mail.From are readonly. Move them to the constructor.