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.
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+                 " you@yourdomain.com" 
42+                 " to@sparkpost.com" 
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
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments