Simple Mail Transfer Protocol (SMTP) (original) (raw)

Last Updated : 14 Jan, 2026

SMTP is an application-layer protocol used to send and transfer email between servers. It relies on a TCP connection to port 25 to reliably deliver messages from a client to an email server.

Simple Mail Transfer Protocol

SMTP

**Types of SMTP Protocol

The SMTP model supports two types of email delivery methods: **end-to-end and **store-and-forward.

smtp-2

SMTP

Features

**The following are the key features of SMTP.com:

**Model of SMTP System

122w3

SMTP Model

Components of SMTP

How does SMTP Work?

smtp

SMTP

1. Sending Email:

2. SMTP Client and Server:

3. Relays and Gateways:

4. Email Delivery:

SMTP Envelope

Purpose

Contents of the SMTP Envelope

Comparison to Regular Mail

SMTP Commands

S.No. Keywor Command form Description Usage
1. HELO HELO It provides the identification of the sender i.e. the host name. Mandatory
2. MAIL MAILFROM : It specifies the originator of the mail. Mandatory
3. RCPT RCPTTO : It specifies the recipient of mail. Mandatory
4. DATA DATA It specifies the beginning of the mail. Mandatory
5. QUIT QUIT It closes the TCP connection. Mandatory
6. RSET RSET It aborts the current mail transaction but the TCP connection remains open. Highly recommended
7. VRFY VRFY It is use to confirm or verify the user name. Highly recommended
8. NOOP NOOP No operation Highly recommended
9. TURN TURN It reverses the role of sender and receiver. Seldom used
10. EXPN EXPN It specifies the mailing list to be expanded. Seldom used
11. HELP HELP It send some specific documentation to the system. Seldom used
12. SEND SENDFROM : It send mail to the terminal. Seldom used
13. SOML SOMLFROM : It send mail to the terminal if possible; otherwise to mailbox. Seldom used
14. SAML SAMLFROM : It send mail to the terminal and mailbox. Seldom used

SMTP Ports

These ports play a important role in defining how email clients and servers communicate securely and efficiently across the internet using the SMTP protocol.

mail_yourdomain_com

Difference Between SMTP and Extended SMTP

**SMTP **Extended SMTP
Users were not verified in SMTP as a result of massive-scale scam emails being sent. In Extended SMTP, authentication of the sender is done.
We cannot attach a Multimedia file in SMTP directly without the help of MMIE. We can directly attach Multimedia FIle in ESMTP.
We cannot reduce the size of the email in SMTP. We can reduce the size of the email in Extended SMTP.
SMTP clients open transmission with the command HELO. The main identification feature for ESMTP clients is to open a transmission with the command EHLO (Extended HELLO).

**Advantages of SMTP

**Disadvantages of SMTP

SMTP vs POP vs IMAP

SMTP POP IMAP
Stands for Simple mail transfer protocol Stands for Post Office Protocol. Stands for Internet Message Access Protocol.
Used for sending mail. Used for retrieving mail. Used for retrieving mail.
it is push protocol. it is pull protocol. it is pull protocol.
It work between sender’s mail server to receiver’s mail server and sender and sender’s mail server. It work between receiver and receiver’s mail server. It works between receiver and receiver’s mail server.
It does not store mail on server it just send the mail. It download all the mail when it connected to internet. It store all mail on server and download when it get request to download.
Works on TCP port number 25. Works on TCP port number 110. Works on TCP port number 143.
Connection oriented protocol. Connection oriented protocol. Connection oriented protocol.
It has persistence TCP connection. It has persistence TCP connection. It has persistence TCP connection.
Stateless protocol. Stateful protocol. Stateful protocol.
It is in band protocol. It is in band protocol. It is in band protocol.
Not used at receiver side. Used at receiver side. Used at receiver side.