File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,37 @@ The SparkPost Java Library is available in this [Maven Repository](http://maven.
23
23
24
24
## Building SparkPost4J
25
25
26
+ ## Basic Send Email Example
26
27
28
+ ``` java
29
+
30
+ package com.sparkpost ;
31
+
32
+ import com.sparkpost.exception.SparkPostException ;
33
+
34
+ public class SparkPost {
35
+
36
+ public static void main (String [] args ) throws SparkPostException {
37
+ String API_KEY = " YOUR API KEY HERE!!!" ;
38
+ Client client = new Client (API_KEY );
39
+
40
+ client. sendMessage(
41
+
42
+
43
+ " The subject of the message" ,
44
+ " The text part of the email" ,
45
+ " <b>The HTML part of the email</b>" );
46
+
47
+ }
48
+ }
49
+
50
+ ```
51
+
52
+
53
+
54
+ ## Advanced Send Email Example
27
55
28
- ## Send Email Example
56
+ With SparkPost you have complete control over all aspects of an email and a powerful tempting solution.
29
57
30
58
``` java
31
59
You can’t perform that action at this time.
0 commit comments