Domanda

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
    );
È stato utile?

Soluzione

Solved it using:

var header = new[]{"Reply-To:test@hotmail.com"};
WebMail.Send(to: customerEmail,
        subject: "Booking enquiry from - " + customerEmail,
        body: customerRequest,
        additionalHeaders: header
    );
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top