We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f63ffeb commit a5de980Copy full SHA for a5de980
apps/sparkpost-samples-app/src/main/java/com/sparkpost/SparkPost.java
@@ -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