Skip to content

Commit 1b56c05

Browse files
author
elbuo8
committed
Added support to BCC by droping the header To
1 parent fd3a65c commit 1b56c05

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/main/java/com/sendgrid/SendGrid.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,17 @@ public Email setHtml(String html) {
198198
return this;
199199
}
200200

201+
public String getHtml() {
202+
return this.html;
203+
}
204+
205+
public Email dropSMTPITos() {
206+
JSONObject oldHeader = new JSONObject(this.smtpapi.jsonString());
207+
oldHeader.remove("to");
208+
this.smtpapi = new SMTPAPI(oldHeader);
209+
return this;
210+
}
211+
201212
public Email addSubstitution(String key, String[] val) {
202213
this.smtpapi.addSubstitutions(key, val);
203214
return this;

0 commit comments

Comments
 (0)