Skip to main content
Version: 1.2.0

SMTP

Simple Mail Transfer Protocol for email transmission:

Message Format​

FieldDescriptionExample Value
CommandSMTP commandMAIL, RCPT, DATA, HELO, EHLO, QUIT
ParametersCommand argumentsFROM:<sender@domain.com>, TO:<recipient@domain.com>
Response Code3-digit status code250, 354, 550
Response TextHuman-readable messageOK, Start mail input, Mailbox unavailable
TerminatorCRLF sequence\r\n

Response Codes​

CodeCategoryDescription
2xxSuccessCommand completed successfully
3xxIntermediateCommand accepted, more info needed
4xxTransient ErrorTemporary failure, retry possible
5xxPermanent ErrorCommand failed, do not retry