title: SparkPost sending emails
body: <p>I'm trying to use Html tags for sending emails just like designing template, how can i do it.</p>
  
  <p>Using sendEmail method of sparkLibrary i can send only text formatted emails, how can i design templates for the email and send it.</p>
  
  <pre><code> SparkPostEmailUtil.sendEmail(MainActivity.this,
                  etSparkPostApiKey.getText().toString(),
                  etSubject.getText().toString(),
                  etContent.getText().toString(),
                  new SparkPostSender(etSenderEmail.getText().toString(), getString(R.string.app_name)),
                  new SparkPostRecipient(etRecipientEmail.getText().toString()),
                  new EmailListener() {
                      @Override
                      public void onSuccess() {
                          if (progressDialog != null &amp;&amp; progressDialog.isShowing()) {
                              progressDialog.dismiss();
                          }
                          AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);
                          builder.setTitle("Success")
                                  .setMessage("Email has been sent successfully.")
                                  .show();
                      }
  
                      @Override
                      public void onError(String errorMessage) {
                          if (progressDialog != null &amp;&amp; progressDialog.isShowing()) {
                              progressDialog.dismiss();
                          }
                          AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);
                          builder.setTitle("Error Sending Email")
                                  .setMessage(errorMessage)
                                  .show();
                          Log.e(TAG, "Error sending SparkPost email: " + errorMessage);
                      }
                  });
  </code></pre>