Remove unneeded request parameters in Mandrill request

This commit is contained in:
Colin McDonald 2016-07-23 19:53:08 -04:00
parent 1b1e1bb3e9
commit 303634dedc

View File

@ -27,10 +27,7 @@ public final class Notification {
message.put("from_email", "no-reply@minehq.com"); message.put("from_email", "no-reply@minehq.com");
message.put("from_name", "MineHQ Network"); message.put("from_name", "MineHQ Network");
message.put("to", new JsonArray().add( message.put("to", new JsonArray().add(
new JsonObject() new JsonObject().put("email", email)
.put("email", email)
.putNull("name")
.put("type", "to")
)); ));
MandrillUtils.sendEmail(message, callback); MandrillUtils.sendEmail(message, callback);