term
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).