Remove unneeded request parameters in Mandrill request
This commit is contained in:
parent
1b1e1bb3e9
commit
303634dedc
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user