Skip to content

Commit

Permalink
Enable headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
billoneil committed Nov 15, 2015
1 parent ca93c25 commit 26cc3c5
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.microtripit.mandrillapp.lutung.view;

import java.util.List;
import java.util.Map;

/**
* <p>The content of a sent message. Corresponds to the result of {@code messages/content.json}.</p>
Expand All @@ -14,7 +15,7 @@ public class MandrillMessageContent {
private String from_email, from_name, subject;
private MandrillMessage.Recipient to;
private List<String> tags;
// private Map< String, String > headers;
private Map< String, String > headers;
private String text, html;
private List< MandrillMessage.MessageContent > attachments;

Expand Down Expand Up @@ -87,4 +88,11 @@ public String getHtml() {
public List<MandrillMessage.MessageContent> getAttachments() {
return attachments;
}

/**
* @return The key-value pairs of the custom MIME headers for the message's main document
*/
public Map<String, String> getHeaders() {
return headers;
}
}

0 comments on commit 26cc3c5

Please sign in to comment.