Closed patuzov closed 8 years ago
Take a look at the end of the SendMessage method:
var response = WebClient.Execute(request);
if (response.StatusCode != HttpStatusCode.OK)
throw response.ErrorException ?? new Exception(response.StatusDescription);
return ExecuteRequest<DataItem>(request);
The request is being sent twice indeed.
Thanks, I'll check this now 👍
fixed - I will push a new release to NuGet now
Hi! First of all, thanks for the library!
I am trying to send a message using the sample code:
For some reason, it makes 2 requests on mailjet and I receive the email twice in my inbox:
What am I missing? Did anyone have such problems?
Thanks!