SMTP

API Testing

// Definition

Simple Mail Transfer Protocol — the standard protocol for sending email between servers. In a testing context, SMTP is the delivery layer beneath features like email verification, password reset, and notifications. Test concerns include: whether emails are actually sent (a stub or real SMTP endpoint must be in the test environment), correct recipient address, subject, body, and link content, and that sensitive tokens in email links are single-use and expire. Tools like Mailhog or Mailtrap provide a local SMTP server that captures outbound email without delivering it.

// Related terms