SMTP
Simple Mail Transfer ProtocolBest for: Sending mail out
- Mail to Arun, from You
- 250 OK, from Mail server
Compare protocols
Best for: Sending mail out
Best for: Reading mail in
SMTP sends email: your mail app hands a message to your provider, and servers pass it on to the recipient's server. IMAP reads email: your app looks into the mailbox on the server and syncs it. They are partners, not rivals. Every mail app uses SMTP to send and IMAP (or POP3) to read.
Tick everything that is true for you.
Your pick shows here
Tick one or more lines and we weigh them for you.
| What differs | SMTP | IMAP |
|---|---|---|
| Job | Send and relay mail | Read and organise mail in a mailbox |
| Direction | Push: sender toward recipient | Pull: your app from your mailbox |
| Who talks | App to server, and server to server | Only your app to your own mail server |
| Ports | 25 (server to server), 587 (STARTTLS), 465 (TLS) | 143 (STARTTLS), 993 (TLS) |
| Example commands | EHLO, MAIL FROM, RCPT TO, DATA | LOGIN, SELECT, FETCH, STORE |
| Stores mail | No, only queues it on the way | Yes, in folders on the server |
| Standard | RFC 5321 | RFC 9051 |
Each page plays the real packets on a map, step by step, with every header explained.
Each line describes one of the two. Which one?
Question 1 of 7
Job
Send and relay mail
Yes, for a normal mail app. SMTP sends, IMAP reads. Setup screens ask for an outgoing (SMTP) and an incoming (IMAP or POP3) server.
Use 587 with STARTTLS, or 465 with TLS from the start. Port 25 is for servers passing mail to each other and is often blocked for home users.
No. IMAP can save a copy in your Sent folder, but the message itself always leaves through SMTP.
SMTP got it out, but the receiving server may have rejected it or put it in spam, often because SPF, DKIM or DMARC checks failed.