Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
任何人都知道如何在 C# 中执行以下操作?
additionalHeaders.Add("Reply-To: test@test.com");
我需要将其插入以下代码:
WebMail.Send(to: customerEmail, subject: "Booking enquiry from - " + customerEmail, body: customerRequest );
使用以下方法解决了它:
var header = new[]{"Reply-To:test@hotmail.com"}; WebMail.Send(to: customerEmail, subject: "Booking enquiry from - " + customerEmail, body: customerRequest, additionalHeaders: header );