Skip to content

Commit a8f2ecc

Browse files
committed
We will still want send() to map to web() because in the future we'll add smtp() as another option to send from
1 parent 1b6b8f0 commit a8f2ecc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/github/scottmotte/sendgrid/Sendgrid.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ public Sendgrid from(final String email) {
4545
}
4646

4747
public String send() {
48+
this.web();
49+
}
50+
51+
public String web() {
4852
HttpRequest request = HttpRequest.post("https://sendgrid.com/api/mail.send.json");
4953
if (username != null) {
5054
request.part(PARAM_API_USER, username);

0 commit comments

Comments
 (0)