Any sufficiently advanced technology will eventually need to send email. And anyone who runs an email delivery program in production for long enough will eventually discover how difficult it is to simply get email delivered reliably. As the CTO of HubSpot, Dharmesh Shah, put it: “Email deliverability is a multi-billion dollar problem.”
Yet it is one of those problems that I see these young whippersnappers rediscovering for themselves again and again. The journey of [falsehoods believed] usually goes something like this:
- Apps don’t need an email API.
- My app can just use the Gmail API.
- All I need is my Gmail username and password, right?
- Gmail’s SMTP API just works.
- SMTP just works.
- MailChimp is an email API.
- Ok, it’s an email marketing tool, but it has an API to send email.
- If I Google “email API”, I will easily find one.
- If I find one, I can just sign up now and start sending email.
- How hard can it be to send a damn email?
- After I sign up and decide to choose an email API, I will never change my mind.
- If I change my mind later, I can easily switch to another email API.
- My email API will deliver all of my email.
- My email API will deliver all of my email sent to valid addresses.
- If my email API successfully delivered an email to a particular address once, it should be able to deliver it again to the same address with no problem.
- If my email API says the email was delivered, it was.
- If my email API says the email was not opened, it wasn’t.
- If I check my email API logs, I should be able to find an email I sent.
- I can read my email API logs.
- Status codes returned by SMTP servers, found in email API logs, are well defined.
- Oh come on, at least they mean something?
- If I check my email API dashboard, I should be able to see the contents of the emails I sent.
- If my email API status page reports no current incidents, everything is fine and dandy.
- Big name email API’s rarely go down.
- If I stop using bad email API X, and choose Y, I will get better service on Y.
- I need exactly one email API.
- Most apps use exactly one email API.
- Wait, why can’t I just use one email API?
- I only need two email APIs, one for marketing and one for transactional.
- “Transactional” email is well defined.
- My email won’t be marked as spam.
- My transactional email won’t be marked as spam.
- At least my critical emails like password resets won’t get marked as spam.
- If someone marks my email as spam, I should still be able to send them critical emails that they request.
- I never send spam email.
- SendGrid is a good email API.
- Mailgun is a good email API.
- Amazon SES must be a good email API because it’s Amazon.
- Look at all these big logos using Email API X. It must be good.
- Postmark is the best email API.
- There exists an email API “X”, such that X is the best email API.
- Now you’re just being biased, because you built Flute.
- Flute is the best email API.
- Flute is an email API.
Any sufficiently advanced use of an email API will eventually end up trying to abstract away your email provider, load balance across many of them, and implement retry/failover mechanisms.
Interested in building this? Give us a shout at careers at flutemail.com. Thanks!