任何人都知道如何在C#中执行以下操作?
additionalHeaders.Add("Reply-To: test@test.com");
我需要将其插入以下代码中:
WebMail.Send(to: customerEmail,
subject: "Booking enquiry from - " + customerEmail,
body: customerRequest
);
答案 0 :(得分:0)
使用:
解决它var header = new[]{"Reply-To:test@hotmail.com"};
WebMail.Send(to: customerEmail,
subject: "Booking enquiry from - " + customerEmail,
body: customerRequest,
additionalHeaders: header
);