Another option to consider is https://sendportal.io - open source self hosted email marketing software. It integrates with SES, Mailgun, SendGrid, Postmark and MailJet. There is a comprehensive rest API.
We're currently working on a paid Pro option that will give you automations (and a few other things), but that will be some time away (early next year if all goes well).
Disclaimer - I work there