Skip to content

Commit

Permalink
fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashley Medway committed Apr 19, 2016
1 parent 6d08573 commit 057c720
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions MailJetClient/MailJetClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,6 @@ public Response<DataItem> SendMessage(MailMessage Message)
if (Message.Sender != null && !String.IsNullOrWhiteSpace(Message.Sender.Address))
throw new NotImplementedException("Sender Address not yet supported.");

var response = WebClient.Execute(request);

if (response.StatusCode != HttpStatusCode.OK)
throw response.ErrorException ?? new Exception(response.StatusDescription);

return ExecuteRequest<DataItem>(request);
}

Expand Down

0 comments on commit 057c720

Please sign in to comment.