Skip to content
DFY Inbox Setup

What Is SMTP? How Email Is Sent, and SMTP vs IMAP vs POP3

SMTP is how email is sent; IMAP and POP3 are how it is read. What an SMTP server does, the path an email takes, what an SMTP conversation looks like, and why it matters for cold email.

Photo of Sohaib HafeezBy Sohaib HafeezCo-founder, DFY Inbox Setup

Updated · 6 min read

What SMTP means

SMTP stands for Simple Mail Transfer Protocol. It is the set of rules, first written in 1982 and now defined in RFC 5321, that mail servers use to pass messages to each other. Whenever an email is sent, from Gmail, Outlook or a cold email tool, SMTP carries it.

How an email travels

  1. 1

    You click send

    Your email app or sending tool

  2. 2

    Submission

    SMTP to your provider, port 587 or 465

  3. 3

    MX lookup

    Your provider finds the recipient’s mail server in DNS

  4. 4

    Delivery

    SMTP server to server, port 25

  5. 5

    Checks

    SPF, DKIM, DMARC and spam filters

  6. 6

    Reading

    The recipient opens it over IMAP or POP3

The path an email takes from sender to recipient

SMTP covers the middle of the journey: getting the message from your app to your provider, and from your provider to the recipient’s server. The recipient’s server finds out where to deliver from the domain’s MX record, which you can look up with our MX lookup tool.

What an SMTP server is

An SMTP server is a mail server that accepts outgoing email. When you set up an app, the "outgoing server" is your provider’s SMTP server: smtp.gmail.com for Gmail and Google Workspace, smtp.office365.com for Microsoft 365. The full settings are on our pages for Gmail and Microsoft 365, and the ports are explained in SMTP and IMAP ports.

What an SMTP conversation looks like

SMTP is plain text: short commands from the sender, numbered replies from the server. A simplified example:

S: 220 mx.example.com ready
C: EHLO mail.yourdomain.com
S: 250 mx.example.com
C: MAIL FROM:<sarah@yourdomain.com>
S: 250 OK
C: RCPT TO:<james@example.com>
S: 250 OK
C: DATA
S: 354 Start mail input
C: Subject: Quick question ... (the message)
C: .
S: 250 Queued
C: QUIT
S: 221 Bye
S is the receiving server, C is the sending client. Real sessions also encrypt and sign in.

Codes starting with 2 mean success, 4 means try again later, and 5 means a permanent failure. Bounce messages quote these codes, which is why an error like 550 5.1.1 tells you the address does not exist.

SMTP vs IMAP vs POP3

SMTPIMAPPOP3
JobSends emailReads email, synced with the serverDownloads email to one device
Usual port587 or 465 (25 between servers)993995
Mail stays on the serverNot applicableYesUsually removed after download
Works on several devicesNot applicableYes, everything stays in syncPoorly
Used by cold email toolsYes, to sendYes, to read replies and run warm-upNo

An email app always pairs SMTP for sending with IMAP or POP3 for reading. IMAP has largely replaced POP3 because people read mail on more than one device.

Sign-in and security

The original SMTP had no sign-in and no encryption. Today, sending from an app needs both: the connection is encrypted with TLS, and the app signs in, increasingly through the provider’s own sign-in (OAuth) rather than a typed password. Google ended password sign-in for Workspace apps in May 2025, and Microsoft turns it off by default for SMTP at the end of December 2026.

SMTP also does not check that the sender is who they claim to be. That is the job of three DNS records: SPF lists the servers allowed to send for a domain, DKIM signs each message, and DMARC tells receivers what to do when those checks fail. Our SPF, DKIM and DMARC guide covers the exact records.

SMTP and cold email

Cold email tools like Instantly and Smartlead do not have their own mailboxes. They send through each of your inboxes over SMTP (or the provider’s API) and read replies over IMAP. That has three consequences:

  • Every inbox needs working SMTP and IMAP access, through OAuth or an app password.
  • Your daily volume is limited per inbox, so volume comes from more inboxes and domains, not more email per inbox.
  • Deliverability depends on the domain’s SPF, DKIM and DMARC, because SMTP itself proves nothing.

Want to check a domain? Our free email deliverability checker tests MX, SPF, DKIM and DMARC in one go.

Frequently asked questions

What does SMTP stand for?

Simple Mail Transfer Protocol. It is the standard, defined in RFC 5321, that mail servers and email apps use to send messages.

What is an SMTP server?

A mail server that accepts outgoing email and passes it on to the recipient’s mail server. For Gmail it is smtp.gmail.com; for Microsoft 365 it is smtp.office365.com.

What is the difference between SMTP and IMAP?

SMTP sends email. IMAP reads it, keeping the mailbox in sync on the server so every device sees the same messages. An email app uses both.

Is SMTP secure?

SMTP itself does not encrypt or verify anything. Encryption comes from TLS on the connection, and proof of who sent a message comes from SPF, DKIM and DMARC records on the sending domain.

Do cold email tools use SMTP?

Yes. Tools like Instantly and Smartlead send through each inbox over SMTP or the provider’s API, and read replies over IMAP. That is why every inbox needs working SMTP and IMAP access.

Your next campaign could be sending by the end of the week.

Create a free account, build your order in a few minutes and request a quote. You only pay when you are happy with it.