Sending email with MailMessage class: Difference between 'Sender' and 'From' properties?
-
While writing code to send emails using System.Net.Mail, I noticed that the MailMessage class seems to have two properties for specifying the email's sender, they are 'Sender' and 'From'. Whats the difference between these two properties? Which one do I set? Or are they basically both the same? Cheers!
Dominic Pettifer Blog: www.dominicpettifer.co.uk
-
While writing code to send emails using System.Net.Mail, I noticed that the MailMessage class seems to have two properties for specifying the email's sender, they are 'Sender' and 'From'. Whats the difference between these two properties? Which one do I set? Or are they basically both the same? Cheers!
Dominic Pettifer Blog: www.dominicpettifer.co.uk
I think one is the name, the other is the email address.
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert