If your application sends emails to confirm new accounts, reset user passwords, or handle billing and invoicing, then it’s sending transactional emails. This kind of functionality is extremely common, so naturally there are a lot of vendors that provide these services. But which transactional email API is right for your application?
To help you pick the one that’s right for you, I’m going to introduce you to six of the best transactional email services available. I’ll evaluate each one according to five different criteria:
While there are dozens of transactional email available today, there are just a handful that consistently deliver on speed, security, and ease of use. Here are the six that I highly recommend:
Given the complexity of these services, I can’t cover all of them in depth. However, this list should provide a good overview, so you can quickly determine where you want to learn more.
Ready to start sending? Courier is the fastest way to get set up with or migrate to a new transactional email service. You can easily design, orchestrate, and track your transactional emails using Courier’s intuitive API and software. Sign up for free.
Marketed as “a cost-effective, flexible, and scalable email service that enables developers to send mail from within any application,“ Amazon SES is one of the most widely used transactional email services. If you’re looking for a service that focuses on the essence of transactional email, is low cost, and can be readily integrated with Amazon Web Services, then SES is the choice for you.
In comparison to the other vendors, SES is lighter on features, but don’t let that dissuade you. In addition to sending (and receiving) emails, it:
It’s worth noting that new accounts are initially sandboxed. This limits them to sending a maximum of 200 messages in a 24-hour period and only to email addresses and domains that you have proven you own. You can get your account removed from the sandbox via the SES console.
SES uses content filtering to help ensure that ISPs will deliver messages sent. It also provides a reputation dashboard and feedback loop to help you monitor the key metrics that affect deliverability (bounces, complaints, and delivery notifications). Solid documentation covers each of these areas.
That said, less technically minded people will likely find it challenging, especially if they’re not familiar with the AWS console.
SES provides email statistics, such as open and click-through rates, deliveries, bounces, and feedback loop results via both the SES console and the SES API. It also includes a reputation dashboard for tracking the overall bounce and feedback loops. This helps with awareness of other issues such as spamtrap hits, references to blocked domains in your emails, and reports from reputable anti-spam organizations.
Analytics in SES doesn’t have the native maturity of other vendors in this list. That said, SES can be integrated with other AWS services, such as Kinesis Data Firehose and Kinesis Data Analytics, or external services to provide richer analytics handling.
SES can be extremely competitively priced, even the cheapest of all options. If your app is hosted in Amazon EC2, the first 62,000 emails, per month, are free. For emails over that limit, it costs $0.1 for every 1,000 emails you send, plus $0.12 for each GB of attachments. Receiving emails costs $0 for the first 1,000 emails and $0.10 for every 1,000 emails you receive after that, plus $0.09 for every 1,000 incoming email chunks.
That said, please be aware of the following in SES’s pricing documentation:
“You pay for outgoing mail data, incoming mail chunks, and EC2 data transfer fees—even if your usage of Amazon SES qualifies for the AWS Free Usage Tier.“
SES pricing can get quite complicated, so make sure you use their pricing calculator to estimate your costs.
See how you can integrate Amazon SES and Courier.
Mailchimp Transactional markets itself as “email for small business. Deliver fast, personalized transactional emails using API or SMTP.“
Formerly known as Mandrill, it was merged into Mailchimp in 2016. The service is still feature rich and very stable – if you’re looking for a service with a long history, a large complement of features, solid analytics, easy setup, and great documentation, then Mailchimp is for you.
Mailchimp Transactional offers three core features:
More specifically, it provides:
Mailchimp states that it can deliver one million emails in forty-five minutes. To achieve this, it approaches deliverability from a series of perspectives, including:
There aren’t as many language libraries as most of the other services, but Mailchimp Transactional still covers the most popular web-based languages (PHP, Python, Node.js, and Ruby). It has in-depth user guides, developer documentation, and API references, as well as mobile SDKs for iOS and Android. I did find the documentation a little opaque at first, but after a little bit of reading, I appreciated that it’s quite comprehensive.
Analytics in Mailchimp Transactional is pretty comprehensive. With it, both via the API and in the app, you can:
Mailchimp Transactional’s pricing structure is a little simpler than SES. That said, it does require a Mailchimp account, which ranges from $9.99 to 299.00 per month. The pricing works in blocks, starting at $20, but gets cheaper the more blocks you buy, down to $10 per block.
With each block, you can send 25,000 emails. It’s worth noting that any unused blocks don’t roll over. They expire at the end of the month. New users can send up to 500 emails for free.
See how you can integrate Mailchimp Transactional (formerly Mandrill) and Courier.
Mailgun markets itself as “the email service for developers,” with “powerful APIs that enable you to send, receive, and track email effortlessly.” It’s used by several well-known global brands, including Microsoft, Dell, Four Seasons, and Lyft. If you’re looking for a vendor that provides a comprehensive range of features, with a well-designed, easy-to-use API and dashboard, then Mailgun is an excellent choice.
Mailgun has a compelling range of features, including:
In addition to these features, Mailgun provides an analytics dashboard to review several key indicators, such as subject lines that get the highest opens, percentage of opens on mobile versus desktop devices, and mailbox providers. You can also view the standard baseline metrics of successful and failed deliveries, opens, and clicks.
Mailgun offers several features that help ensure deliverability:
Also, Mailgun offers three additional services to further help deliverability:
Mailgun offers a large number of libraries, including for Python, Perl, Ruby, Java, Kotlin, Go, C#, PHP, Node.js, Luvit, and cURL. While its developer documentation isn’t as flashy as some of the other vendors, it’s quite comprehensive and thorough. It has everything you’d expect, including a quickstart guide, a user manual, and API reference.
Worth particular mention is the fact that Mailgun’s documentation has given special attention to an Email Best Practices section. Quite handy for helping ensure high deliverability and a healthy reputation. That plus a very user-friendly dashboard means Mailgun is, of all the services, one of the easiest to get started with.
Mailgun’s analytics service tracks opens, clicks, unsubscribes, spam complaints, deliveries and failures. Also, you can use analytics data to determine the best time to send your emails, and learn more about email performance by several criteria, including device, location, and mailbox provider.
Mailgun offers four predefined plans and custom plans, depending on what your needs are. The pre-defined plans range from pay-as-you-go for the base flex plan up to $90 per month for the top-level plan. The base plan gives you 5,000 free emails per month for three months. If you go over that limit, it costs $0.80 per 1,000 emails.
Each plan includes analytics, 24/7 ticket support, and a 99.99% guaranteed uptime SLA.
See how you can integrate Mailgun and Courier.
Postmark markets itself as “reliable delivery for your application emails,” and promises to “deliver your email to customers on time, every time.“ If you’re looking for a battle-tested service backed by a strong infrastructure, capable of handling extremely high mail volumes with a significant emphasis on deliverability, and you don’t mind paying a bit extra, then check out Postmark.
Postmark offers an array of features that give deep insight into your email history, helping you achieve high deliverability. You can:
In addition to these features, the API affords the ability to manage servers, domains, sender signatures, templates, as well as retrieve stats.
Postmark places a lot of emphasis on deliverability – in its documentation, its key features matrix, a dedicated page on email deliverability, and even a Time-to-Inbox dashboard that shows delivery time for each of the five major ISPs (Gmail, Yahoo, Outlook, AOL, and iCloud). Its delivery FAQ) states:
“Great delivery is included for all of our customers, free or high volume. We don’t think that great delivery should be an add-on or up-charge, and we stand behind our email delivery on both our shared and dedicated IP addresses.“
Postmark supports the most languages and integrations of any of the vendors in this list: Classic ASP, Google Go(lang), Haskell, Java, Erlang, Node.js, Perl, Scala, and Swift. It also goes further than the others as far as supported frameworks, such as Drupal, WordPress, Magento, and Django, as well as PHP’s Laravel and Zend.
Postmark has in-depth user guides, developer documentation, and API references. Something that particularly stood out to me are the in-depth guides for migrating from SendGrid, Mailgun, Amazon SES, SparkPost, or Mailchimp Transactional (Mandrill).
Postmark provides comprehensive analytics, including the following functionalities:
Postmark also has a very user-friendly dashboard, if that’s the way you prefer to view your account analytics. However, it has a range of API endpoints that can retrieve the information programmatically as well.
Postmark’s pricing structure is similar to others in this list, based on the number of emails sent. Each plan has a cap, which can be exceeded for a cost per 1,000 emails. That said, it’s one of the most expensive of the lot.
The plans range from 10,000 emails per month for $10.00 to 5 million emails per month for $1,200.00. The cost per additional 1,000 emails starts at $1.25 and drops to $0.25. Additional plans are available if you need to send at a higher volume. It’s worth noting that unused emails don’t roll over to the next billing period.
See how you can integrate Postmark and Courier.
SendGrid is the largest transactional email service on this list, sending over 70 billion emails every month. Similar to Mailchimp, Mailgun, and Postmark, SendGrid is available via an API as well as a slick dashboard. Acquired by Twilio in 2019, the company markets itself as a “partner with the email service trusted by developers and marketers for time-savings, scalability, and delivery expertise.“
If you’re looking for a service that can handle large mail volumes, is easy to get started with, and part of a larger communication group, then SendGrid is an excellent choice.
SendGrid has a large number of features, including:
SendGrid has invested in a number of key features to optimize deliverability. They approach it from three angles: infrastructure, authentication, and reputation.
Their deliverability features spans automated IP warmup, reverse DNS, branded links, blacklist monitoring, bounce management, email validation, and Adaptive Communication Engine, their artificial intelligence engine.
SendGrid does an excellent job when it comes to documentation. It offers in-depth user guides, developer documentation, API references, a blog, videos and podcasts, webcasts, and a dedicated knowledge center. It has libraries for most modern languages, including cURL, PHP, Java, Node.js, Go(lang), C#, Ruby, and Python.
SendGrid has quite comprehensive analytics, including real-time analytics, engagement tracking, ISP feedback loop data, subuser comparison statistics, and searchable email activity (capped at a maximum of seven days). This information is available both via API endpoints as well as a user-friendly dashboard.
SendGrid offers four plans. The entry-level, or Free, plan lets you send 100 emails a day forever. The Essentials plan starts at $14.95 per month and lets you send up to 100,000 emails per month. The Pro plan ranges from $89.95 per month to $749.00 per month and lets you send up to 1.5 million emails per month. For larger volume requirements, there’s the Premier plan.
See how you can integrate Sendgrid and Courier.
SparkPost markets itself as “Email Insights and Sending Made Easy. Deliverability and Analytics For Better Email Performance.“ Its homepage boasts three key metrics:
SparkPost is quite a full-featured service, including:
SparkPost offers its own unique deliverability technology, Adaptive Delivery, which aggregates real-time delivery data to automatically optimize email delivery and reduce bounces, blocks, and delays.
Like Mailgun, Sparkpost offers managed deliverability services, which give you access to a dedicated technical account manager and additional deliverability planning and reporting.
Similar to all the transactional email services in this list, SparkPost provides a solid assortment of documentation, including guides for getting started, developer and API documentation, and a developer blog. It also has a community Slack, with 8,889 registered users. It has libraries for most modern languages, including PHP, Java, Node.js, Go(lang), Elixir, C#, Ruby, and Python.
SparkPost provides a dashboard backed by a set of tools for managing analytics. It includes a Predictive Email Health Score that incorporates ISP responses, bounces, and spamtraps in real time. The dashboard also tracks engagement and unsubscribes, as well as spam complaint rates.
SparkPost’s pricing structure includes three paid plans, and one free, where the price is based on the number of emails sent per month. The base (Starter) plan starts at $20 per month and can send between 50,000 and 250,000 emails. The next (Premium) plan starts at $75 per month and can send from 100,000 to 1 million emails.
As you can see, there is an overlap between the base and second plans. For higher volumes, there is the Enterprise plan. It’s worth noting that a number of features are either limited in the Starter plan or not available.
See how you can integrate SparkPost and Courier.
And that’s our introduction to six of the best transactional email APIs available for developers today. We considered each one by its features, deliverability, API documentation, analytics, and pricing. If you’re considering using a transactional email service, this article should be a good place to begin your decision-making process.
One last thing: if you’re looking for the fastest way to get set up with or migrate to any of the email service providers I covered here, don’t forget to check out Courier. Design, orchestrate, and track your transactional emails with Courier’s intuitive API and software. Plus, it’s totally free to sign up.
Matthew Setter is a security-focused software engineer who specializes in web development, mainly in PHP. When he’s not writing PHP code, you can find him writing all about web development at matthewsetter.com and creating courses for Pluralsight.
Create a Discord Bot that Automates Secret Messages with Node.js
Our plan is to create and install a Discord bot that automates encrypted messages to the civilians and alerts them about the situation so that they can escape.
September 27, 2022
Build a Serverless Lie Detector that uses AI for Facial Recognition
When the Face API recognizes that one of our spies is being deceitful, we will use Courier to broadcast the identity of the mole to our spy network.
September 12, 2022