Skip to content

Commit a616798

Browse files
author
elbuo8
committed
Added convenience method like javax.mail
1 parent af9bfa3 commit a616798

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ public Email addTo(String[] tos) {
175175
return this;
176176
}
177177

178+
public Email addTo(String to, String name) {
179+
this.addTo(to);
180+
return this.addToName(name);
181+
}
182+
178183
public Email setTo(String[] tos) {
179184
this.smtpapi.setTos(tos);
180185
this.to = new ArrayList<String>(Arrays.asList(tos));

0 commit comments

Comments
 (0)