SMTP (simple mail transfer protocol) is an application layer protocol that is used to send emails from the sender’s mail server to the receiver’s mail server.
Suppose that person wants to send an email to person . The steps involved in this email transfer are:
composes an email on their user-agent (e.g., Outlook) and adds the recipient’s email address.
's user-agent sends the email to 's mail server.
The SMTP client process on 's mail server opens a connection with the SMTP server process on 's mail server by establishing a TCP connection on port 25 and conveying information (e.g., the sender’s email address and the receiver’s email address) to 's mail server during handshaking.
The SMTP client process on 's mail server sends the email to the SMTP server process running on 's mail server. Upon reception, the email is placed in 's mailbox.
can now pull the email from their mail server using a protocol like POP3 or IMAP.
Free Resources