API vs SMTP
When to use HTTP API versus SMTP relay.
HTTP APIs return structured errors, support idempotency keys, and integrate with serverless runtimes. SMTP is universal and works with any language. APIs are usually preferred for new code; SMTP is preferred when migrating an existing app or using libraries that already speak SMTP (like Nodemailer or ActionMailer).
reading this as developers picking email infrastructure
The question here is which one a backend engineer would rather operate. That means SDK depth in the language already in use, whether a retry can safely be replayed, how much the event log tells you when a customer says the email never arrived, and whether the pricing curve stays sane as volume grows.
Applied to api vs smtp, that means weighing developer experience, SDK breadth, idempotency keys, and operating track record ahead of the rest, against password resets, receipts, and magic links shipped from application code.