“Send” begins a sequence, not a direct device-to-device transfer.
When you compose an email in a webmail browser, you usually talk to the webmail provider through HTTPS. The provider's mail infrastructure then handles message submission, routing and transfer. Mail servers commonly use SMTP to hand messages along; the recipient reads them through a webmail interface or a mail access protocol such as IMAP.
Sender's browser ─HTTPS─→ Sender's mail provider
│
DNS MX lookup
│
SMTP transfer
│
Recipient mail provider
│
HTTPS webmail / IMAP clientIt is possible for transfers to involve relays, filters, queues, or retries. A user's browser does not necessarily speak SMTP directly to the destination domain.
How does a mail server find another domain's mail server?
The sending mail service can query DNS for the recipient domain's MX records. These records identify mail exchange hosts, often with preference values. Those hostnames are then resolved to addresses for connection. This is why “the website works” and “email delivery works” can be completely different facts for the same domain.
dig example.com MX
dig example.com A
The two lookups answer different questions. One concerns mail routing; the other concerns IPv4 addressing for a hostname.
The SMTP envelope is not the same thing as the message's From header.
SMTP transfers include envelope commands such as MAIL FROM and RCPT TO. A message also has headers that people see, including From:, To:, and Subject:. Those are not the same protocol fields, even if they often contain similar addresses.
That separation matters in forwarding, bounces, and spam analysis. The envelope controls delivery during SMTP transactions; the message headers describe the message carried as data.
Received headers tell a story—if you read them carefully.
Mail transfer agents often prepend a Received: header when they accept a message. Because each new hop adds its header near the top, you typically inspect these headers from bottom upward to reconstruct the apparent path. Each header's reliability depends on where it was added; untrusted senders can forge parts of the lower header chain.
A Received: line showing the IP address of a sending mail server does not necessarily reveal the sender's laptop or phone. This was a distinction I initially needed to correct while reading Chapter 2: a mail trace shows infrastructure hops, not automatically the user's device.
Inspect your own message source.
In your mail provider, find an option such as “Show original” or “View message source.” Locate the Received headers and inspect them from the bottom up. Keep addresses and message contents private; you don't need to publish a real message to learn from it.
Can a domain have a working website while receiving no email?
Yes. Web hosting and mail exchange records are separate, and mail delivery depends on additional protocols and infrastructure.