.NET
To make the HTTP request easier, we use Restsharp for the example. Be free to use whatever you want
var message = new
{
layoutIdentifier = "<<YOUR_LAYOUT_ID>>",
variables = new { },
from = "Example <[email protected]>",
to = "[email protected]",
subject = "hello world"
};
RestClient client = new RestClient();
RestRequest request = new RestRequest("https://api.mailwind.io/v1/send/resend", Method.Post);
request.AddHeader("Authorization", $"Bearer <<YOUR_API_KEY_HERE>>");
request.AddJsonBody(msg, "application/json");
var response = client.Execute(request);
Last updated