0

任何人都知道如何在 C# 中执行以下操作?

additionalHeaders.Add("Reply-To: test@test.com");

我需要将其插入以下代码:

WebMail.Send(to: customerEmail,
        subject: "Booking enquiry from - " + customerEmail,
        body: customerRequest
    );
4

1 回答 1

0

使用以下方法解决了它:

var header = new[]{"Reply-To:test@hotmail.com"};
WebMail.Send(to: customerEmail,
        subject: "Booking enquiry from - " + customerEmail,
        body: customerRequest,
        additionalHeaders: header
    );
于 2013-04-18T20:32:25.627 回答