How They Work: How Emails Work – Part II
The SMTP server understands very simple text commands like HELO, MAIL, RCPT and DATA. The most common commands are as follows:- HELO - introduce yourself, EHLO - introduce yourself and request extended mode, MAIL FROM: - specify the sender, RCPT TO: - specify the recipient, DATA - specify the body of the message (To, From and Subject should be the first three lines.), RSET – reset, QUIT - quit the session, HELP - get help on commands, VRFY - verify an address, EXPN - expand an address and VERB – verbose.