Skip to content

Commit c06a101

Browse files
committed
Updates README with simplified send email example
1 parent 6912fdf commit c06a101

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

README.md

+29-1
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,37 @@ The SparkPost Java Library is available in this [Maven Repository](http://maven.
2323

2424
## Building SparkPost4J
2525

26+
## Basic Send Email Example
2627

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
2755

28-
## Send Email Example
56+
With SparkPost you have complete control over all aspects of an email and a powerful tempting solution.
2957

3058
```java
3159

0 commit comments

Comments
 (0)