Skip to content

Commit a5de980

Browse files
committed
Adds a simplified API for someone who just wants to send a simple email
1 parent f63ffeb commit a5de980

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
package com.sparkpost;
3+
4+
import com.sparkpost.exception.SparkPostException;
5+
6+
public class SparkPost {
7+
8+
public static void main(String[] args) throws SparkPostException {
9+
String API_KEY = "YOUR API KEY HERE!!!";
10+
Client client = new Client(API_KEY);
11+
12+
client.sendMessage(
13+
"you@yourdomain.com",
14+
"to@sparkpost.com",
15+
"The subject of the message",
16+
"The text pare of the email",
17+
"<b>The HTML part of the email</b>");
18+
19+
}
20+
}

0 commit comments

Comments
 (0)