How email works: from send to inbox

Follow an email from your app to the recipient’s inbox — SMTP, MX lookups, authentication checks and delivery — and see where problems happen.

ExplainerIntermediate2 min readUpdated

Email looks instant, but a message passes through several servers and checks. Each stage is a place something can go wrong.

1. Your app submits the message

Your mail app connects to your outgoing server — mail.yourdomain.co.uk — over SMTP, logs in with your mailbox credentials, and hands over the message. What is SMTP and SMTP authentication?

2. Your server looks up the recipient

Your server takes the recipient’s domain, say example.com, and looks up its MX record to find which server accepts its mail. MX records: how email finds your mail server

3. Servers talk SMTP

Your server connects to the recipient’s mail server and offers the message.

4. The receiving server checks it

Before accepting, the receiving server asks:

It then accepts the message to the inbox, files it as spam, or rejects it with a bounce. Understanding email bounce messages

5. The recipient reads it

Their app fetches mail from their server using IMAP or POP3. IMAP vs POP3: which should I use?

Where problems show up

StageSymptomGuide
1App can’t send, password rejectedSMTP authentication failed
2–3Delivery delayed or bouncedUnderstanding email bounce messages
4Lands in spamWhy are my emails going to spam?
Incoming MXYou don’t receive mailNot receiving email: how to fix incoming mail

Popular

Tip: press / to search from any pageSee all results