What Is SMTP? A Beginner's Guide
SMTP (Simple Mail Transfer Protocol) is the internet standard for sending email. It is the set of rules mail servers use to hand a message from the sender to the recipient's mail server. Every time you hit send, SMTP is the protocol that routes your message across the internet to its destination.
What SMTP does (and doesn't do)
SMTP is a "push" protocol built for one job: moving outgoing mail from a client to a server, and between servers, until it reaches the recipient's mailbox. It does not retrieve mail. When you open your inbox, a different protocol (IMAP or POP3) fetches messages down to your device. Think of SMTP as the postal service that delivers letters, and IMAP/POP3 as the mailbox you check to read them.
SMTP vs. IMAP vs. POP3
| Protocol | Direction | Purpose |
|---|---|---|
| SMTP | Outgoing | Sends mail and relays it between servers |
| IMAP | Incoming | Reads mail while keeping it synced on the server |
| POP3 | Incoming | Downloads mail to one device, often removing it from the server |
The key players in an SMTP transaction
- Mail User Agent (MUA) — your email client or app (Outlook, Gmail, a script) where the message originates.
- Mail Submission Agent (MSA) — the server that accepts your authenticated message on port 587 and prepares it for relay.
- Mail Transfer Agent (MTA) — the server that routes the message across the internet toward the recipient's domain.
- Mail Delivery Agent (MDA) — the final server that drops the message into the recipient's mailbox.
How an email actually travels
- Compose and submit. Your client connects to your outgoing SMTP server (for example, smtp.gmail.com on port 587), authenticates, and submits the message.
- Look up the destination. The server reads the recipient's domain and queries DNS for its MX (Mail Exchanger) records to find the receiving mail server.
- Relay. Your server opens an SMTP connection to the recipient's server and transfers the message, often through one or more MTAs.
- Deliver. The receiving server accepts the message and hands it to the mailbox, where the recipient later retrieves it via IMAP or POP3.
What an SMTP conversation looks like
Under the hood, SMTP is a plain-text exchange of commands and numeric reply codes. A simplified session looks like this:
HELO mail.example.com
MAIL FROM:<[email protected]>
RCPT TO:<[email protected]>
DATA
Subject: Hello
(message body)
.
250 OK: message accepted
Codes in the 200s mean success, 400s mean a temporary failure (retry later), and 500s mean a permanent failure (the message bounced). Those codes are what your sending logs report when something goes wrong.
SMTP ports and security
SMTP runs over a few standard ports. Port 25 is used for server-to-server relay, port 587 is the modern standard for authenticated sending with STARTTLS, and port 465 handles submission over implicit TLS. Modern SMTP is almost always encrypted and authenticated, which is why you supply a username and password (or an API key) when configuring a sending account.
Why SMTP matters for deliverability
Getting the protocol right is only the start. Whether your mail lands in the inbox depends on the reputation of the server sending it and on authentication records (SPF, DKIM, and DMARC) that prove the message really came from your domain. This is why sending high volumes through a personal mailbox is unreliable, and why businesses route mail through a dedicated SMTP relay that manages authentication, encryption, and sender reputation. If placement is your concern, our email deliverability guide covers the reputation side in detail.
Frequently asked questions
What does SMTP stand for?
SMTP stands for Simple Mail Transfer Protocol. It is the internet standard that governs how email is sent from a client to a server and relayed between mail servers until it reaches the recipient.
Is SMTP for sending or receiving email?
SMTP is for sending and relaying email. Receiving and reading mail is handled by IMAP or POP3. SMTP pushes messages out; IMAP and POP3 pull them in.
What is an SMTP server?
An SMTP server is a computer running mail software that accepts outgoing messages and routes them toward their destination using the SMTP protocol. Examples include smtp.gmail.com and the servers behind any email service provider.
What ports does SMTP use?
Port 587 is the standard for authenticated sending with STARTTLS, port 465 is used for implicit TLS submission, and port 25 is used for server-to-server relay. For sending from an app or client, use port 587.
Want reliable sending without managing servers, ports, and authentication yourself? Launch with IGSendMail and let the platform handle the plumbing.