Using this:
MailMessage mm = new MailMessage();
What is the difference between:
mm.Sender = sender; and mm.From = from; ?
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
Senderproperty sets theSenderheader. There can only be one email address on it, and if theFromaddress has more than one email address, this header has to exist.The
Fromproperty sets theFromheader. It can have multiple email addresses.See RFC 5322 (section 3.6.2):