質問

Anyone know how to do the following in C#?

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

I need to insert it into the following code:

WebMail.Send(to: customerEmail,
        subject: "Booking enquiry from - " + customerEmail,
        body: customerRequest
    );
役に立ちましたか?

解決

Solved it using:

var header = new[]{"Reply-To:test@hotmail.com"};
WebMail.Send(to: customerEmail,
        subject: "Booking enquiry from - " + customerEmail,
        body: customerRequest,
        additionalHeaders: header
    );
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top