What is SparkPost?

Share this article

Key Takeaways

  • SparkPost is an SMTP and API-driven email infrastructure service that provides a single platform for sending both bulk and transactional messages. It offers nearly 98% inbox placement, which is higher than the industry average, and provides real-time tracking data across over 35 metrics.
  • SparkPost was launched in 2014 by Message Systems, a high-performance messaging platform that started in the late 1990s and currently sends over 25% of all legitimate emails. SparkPost provides developers with the same deliverability, scalability, and speed as its parent platform.
  • SparkPost offers robust integration capabilities through its powerful API, allowing automation of email processes and streamlined workflows. It also prioritizes security, using Transport Layer Security (TLS) encryption for all emails and complying with various security standards, including GDPR and CCPA.

I’ve used Mandrill for as long as I can remember. It sends transactional email, like the kind you receive when you sign up for a new account. Like me, many have been happy to use a free account for sending a relatively low number of emails a month.

Mail flying off

That is, until recently, when Mandrill caused a bit of a stir. The heart of the matter is that Mandrill removed their free tier. Anybody wishing to send mail through Mandrill now requires a paid-for MailChimp account.

Perhaps they grew tired of making no money for sending lots of emails. Whatever the reason, many folks were surprised, and some even angry at the move. It’s akin to a popular open source library suddenly going closed-source.

What is SparkPost?

Mindful that people are looking for alternatives (to power their personal newsletters or whatever), I spoke to Aydrian Howard. Aydrian is the Developer Advocate at SparkPost, whom I met at FluentConf. We talked for a bit about SparkPost and what makes it different from MailChimp…

1. What are your thoughts on the recent MailChimp/Mandrill news?

We have a lot of respect for MailChimp and think they are a great company. We understand when they say that transactional email isn’t the business they’re in. Thanks to our great relationship with MailChimp, they are recommending us as a Mandrill replacement.

2. How long has the service been around, and what is its purpose?

We got our start in the late 1990s when Message Systems launched Momentum, the high-performance messaging platform servicing high-volume senders. Over time the Momentum customer base grew to send over 25% of all legitimate email and saw the launch of a managed cloud offering. In 2014 we launched SparkPost, providing developers with the same deliverability, scalability and speed as we provide to the biggest senders in the world, in an easily integrated cloud service.

3. What do Mandrill and SparkPost have in common?

We’re both SMTP & API-driven email infrastructure services.

4. What can you do with SparkPost that you can’t with Mandrill?

With SparkPost, you have the ability to use a single platform to send all your bulk and transactional messages. That means a single API, templating language, tracking, metadata and metrics. We are the industry’s leading email delivery service with nearly 98% inbox placement, which is 15 points higher than the industry average. We also provide to the minute tracking data (versus hourly) across all of our 35+ metrics. As part of our commitment to transparency, we include delivery latency numbers in our metrics. We are highly focused on developers. We maintain 8 client libraries (so far) and a growing selection of integrations. Our developer community is a very important part of SparkPost. We like to encourage and enable everyone to build something awesome.

5. How does SparkPost pricing work?

We just published a great FAQ Blogpost on our pricing.

Using SparkPost

After talking to Aydrian, I decided to try SparkPost. Turns out it’s quite easy to set up! To use it, you have to create an account:

SparkPost home screen

SparkPost Registration Screen

When you first register, you’ll be presented with a couple of steps to set up your first application.

Setting up an application, step 1 - selecting the domain from which to send

Setting up an application,  step 2 - selecting whether the user wants STMP or REST

You can choose to send mail through SMTP or the JSON API. Click “Get a key” and keep that key close at hand for the code we’re about to write.

Next, create a working directory, and download the official SparkPost PHP SDK:

composer require sparkpost/php-sparkpost

You might see a warning about outdated dependencies. The SDK maintainers know about this and are working on a new version.

Create a config.php file, to store the key:

return [
    "sparkpost" => [
        "key" => "<your key here>",
    ],
];

It’s a good idea to ignore this file in Git, so create a .gitignore. It’s also a good place to ignore other common files:

config.php
vendor/

Now, let’s create send.php, to send emails through SparkPost:

require("vendor/autoload.php");

use SparkPost\SparkPost;
use GuzzleHttp\Client;
use Ivory\HttpAdapter\Guzzle6HttpAdapter;

$config = require("config.php");

$adapter = new Guzzle6HttpAdapter(new Client());

$client = new SparkPost($adapter, [
    "key" => $config["sparkpost"]["key"],
]);

$results = $client->transmission->send([
    "from" => "Sandbox <sandbox@sparkpostbox.com>",
    "html" => "<html><body>hello html email</body></html>",
    "text" => "hello plain text email",
    "subject" => "Testing SparkPost Email",
    "recipients" => [
        [
            "address" => [
                "name" => "Chris",
                "email" => "cgpitt@gmail.com",
            ],
        ],
    ],
]);

The official PHP SDK requires an adapter library called Ivory\HttpAdapter. This abstracts the HTTP layer, so that you can swap from GuzzleHttp to something else. This is probably just to cater for folks stuck on PHP 5.4, who can’t use the latest and greatest version of Guzzle.

With the adapter, we then create an instance of the SparkPost client. On this we can access the transmission property and the send method.

Conclusion

The properties here are only a fraction of what you can specify through the JSON API. I am curious to see how easy it would be to use that directly, but hopefully this illustrates how to begin to use SparkPost, with minimal effort.

Stay tuned for more on this topic, as we explore how to use the SparkPost API to do more interesting things. Let us know if you’re interested in integrating SparkPost into your application or favorite framework, in the comments below.

Frequently Asked Questions about SparkPost

What makes SparkPost different from other email delivery services?

SparkPost is a cloud-based email delivery service that is designed to provide high-speed, reliable, and secure email delivery. It is built on the foundation of Momentum, a highly flexible and adaptable email delivery engine. SparkPost is unique in its predictive email intelligence, which allows users to optimize email delivery by predicting bounces and spam complaints. It also offers real-time analytics and reporting, allowing users to track and analyze their email campaigns in real time.

How secure is SparkPost?

SparkPost prioritizes security and ensures that all emails sent through its platform are secure. It uses Transport Layer Security (TLS) encryption for all emails, ensuring that your data is protected during transmission. Additionally, SparkPost is compliant with various security standards, including GDPR and CCPA, ensuring that your data is handled responsibly and securely.

Can I integrate SparkPost with other applications?

Yes, SparkPost offers robust integration capabilities. It provides a powerful API that allows you to integrate it with your existing applications and systems. This means you can automate your email processes and streamline your workflows, saving you time and effort.

How reliable is SparkPost’s email delivery?

SparkPost is known for its high reliability in email delivery. It uses advanced technology and predictive intelligence to ensure that your emails reach the intended recipients. It also provides real-time analytics and reporting, allowing you to monitor the performance of your email campaigns and make necessary adjustments.

Does SparkPost offer customer support?

Yes, SparkPost offers comprehensive customer support. They have a dedicated team of experts who are ready to assist you with any issues or questions you may have. They also offer a wealth of resources, including guides, tutorials, and a community forum, to help you get the most out of their service.

What is the pricing structure for SparkPost?

SparkPost offers a variety of pricing plans to suit different needs and budgets. They offer both monthly and annual plans, with different tiers based on the volume of emails you need to send. They also offer a free trial, allowing you to test their service before committing to a paid plan.

Can I use SparkPost for bulk email campaigns?

Yes, SparkPost is designed to handle large volumes of emails, making it an excellent choice for bulk email campaigns. It offers high-speed delivery and real-time analytics, allowing you to effectively manage and monitor your bulk email campaigns.

How does SparkPost’s predictive email intelligence work?

SparkPost’s predictive email intelligence uses machine learning algorithms to predict potential issues with your email campaigns, such as bounces and spam complaints. This allows you to proactively address these issues and optimize your email delivery.

Does SparkPost offer any tools for email design?

Yes, SparkPost offers a range of tools for designing emails. These include a drag-and-drop email builder, as well as the ability to code your own emails using HTML. This gives you the flexibility to create emails that align with your brand and meet your specific needs.

Can I track the performance of my emails with SparkPost?

Yes, SparkPost provides real-time analytics and reporting, allowing you to track the performance of your emails. You can monitor open rates, click-through rates, bounces, and more, giving you valuable insights into the effectiveness of your email campaigns.

Christopher PittChristopher Pitt
View Author

Christopher is a writer and coder, working at Over. He usually works on application architecture, though sometimes you'll find him building compilers or robots.

BrunoSemailmandrillSaaSsparkpost
Share this article
Read Next
Get the freshest news and resources for developers, designers and digital creators in your inbox each week