Sending an email with the header return-path using windows virtual mail server
问题 I'm trying to send an email message using the .NET MailMessage class which can also have the return-path header added so that any bounces come back to a different email address. Code is below: MailMessage mm = new MailMessage( new MailAddress(string.Format("{0}<{1}>", email.FromName, email.FromEmail)), new MailAddress(emailTo)); mm.Subject = ReplaceValues(email.Subject, nameValues); mm.ReplyTo = new MailAddress(string.Format("{0}<{1}>", email.FromName, email.FromEmail)); mm.Headers.Add(