E-commerce
October 30, 2026
Are you wondering how a simple click on 'send' becomes a message that reaches your customer's inbox?
In a few seconds, the email traverses multiple servers; understanding this process helps you avoid blocks and ensure deliverability.
The journey may seem invisible, but each step contains parameters that influence open rates and legal compliance.
Furthermore, how servers handle cryptographic signatures, anti-spam filters, and DNS policies conditions the visibility of your campaign to the final recipient.
So, how does email work technically? Here is the program:
What is an email header and what data does it contain?
How does the email client create the message before sending?
What role does the sending server (SMTP) play in transmitting the mail?
How does the receiving server (IMAP/POP) identify the correct account?
How does Qstomy integrate these mechanisms to boost your deliverability?
Let's go.
Summary
What is an email header and what data does it contain?
The header, sometimes invisible, carries the essential information of the message. It includes the sender's address, the recipient(s) (To, CC, BCC), the subject, the send date, the client used, and tracking identifiers (Message-ID, Reply-To). Some fields, such as 'Received', are automatically added by each server traversed, creating a chronological trace of the journey. For the merchant, properly filling in the sender (an address consistent with the store's domain) strengthens the ISP's trust and reduces the risk of being marked as spam. Additionally, correctly formatted headers facilitate anti-phishing filtering and improve the reputation score.
Beyond standard fields, adding headers like List-Unsubscribe ou Return-Path allows filters to better categorize the message while offering recipients a simple way to unsubscribe, which reduces spam complaints.

Convert over 2,000 customers on average per month with Qstomy.
The world’s 1st Shopify AI dedicated to customer conversion



Empowering 200+ e-commerce merchants
How does the email client create the message before sending?
It all begins in your email client, Outlook, Gmail, or the Qstomy dashboard. You enter the recipient, subject, and body text. The client then generates two parts: the header (see previous section) and the body, which can contain rich text, HTML, or attachments. Before sending, the client encodes everything in MIME format, ensuring that each piece (text, image, PDF) is correctly identified and decoded by the receiver. A preview text field is also added, which influences the open rate on mobile.
The client also checks the validity of the HTML code, adds tags alt to images, and applies inline styling to ensure a consistent presentation across most readers, even those that block external resources.
What role does the sending server (SMTP) play in transmitting the mail?
When you click 'send', the client contacts the configured SMTP server (often provided by your hosting provider or by Qstomy). The server requests authentication (username, password) and then accepts the message. It reads the headers to determine the destination server via the MX DNS records of the recipient's domain. Each relay adds its own 'Received' header, creating the tracking chain. A well-configured server uses SPF, DKIM, and DMARC to prove the authenticity of the message, a crucial condition for deliverability. Furthermore, servers apply rate limits to prevent mass spamming.
If the destination server does not support TLS encryption, the sending server can resort to STARTTLS or, failing that, log a TLS failure report in the logs, which helps administrators identify friction points and activate secure fallback mode.
How does the receiving server (IMAP/POP) identify the correct account?
Upon arriving at the recipient's server, the message is filed in the target address's inbox. IMAP or POP servers authenticate the user (login, password) and then place the mail in the corresponding folder. The 'To' field (before the '@') indicates the intended account. If the server detects inconsistencies (failed SPF/DKIM), it may redirect the message to the spam folder or reject it entirely. Some providers also apply 'greylisting', which temporarily delays the first delivery attempt to filter out illegitimate senders.
IMAP servers add flags such as \Seen or \Flagged, allowing clients to synchronize read status and apply server-side filters to automatically organize messages.
What are the server-side storage options and why clean them up?
Once stored, emails generally remain on the server until the client retrieves them. Some clients leave messages on the server (IMAP), while others delete them after downloading (POP). Prolonged storage can saturate the mailbox, leading to the rejection of new messages. Most services offer a retention rule: deletion after 30 days or automatic archiving. As a merchant, monitor your sending server's space to avoid blocks caused by a full mailbox. Compliance with retention requirements (GDPR, e‑privacy) sometimes imposes a minimum retention period.
It is recommended to configure periodic archives and backup sending logs to reconstruct a message's journey in case of an audit or commercial dispute.
How are attachments integrated and secured?
Attachments are encapsulated within the MIME body of the message, each with a type (Content‑Type) and encoding (base64). The client converts them into data blocks that the server transmits unchanged. Upon receipt, the client decodes these blocks to display the file. To avoid anti‑spam filters, limit the size (under 10 MB) and avoid risky extensions (exe, bat). Qstomy automatically compresses product images to stay under thresholds accepted by ISPs. Additionally, most servers run an anti‑malware scan before accepting attachments.
Some platforms store attachments in cloud storage spaces (S3, Azure Blob) with retention policies and at‑rest encryption, ensuring that even in the event of a messaging server compromise, the files remain protected.
What is the role of security protocols (TLS, SSL) in email sending?
Most SMTP servers use TLS (or SSL) to encrypt the channel between the client and the server. This prevents interceptors from reading the content or modifying headers. Encryption begins at authentication and continues during message transfer. Enabled encryption is a trust criterion for providers like Google or Outlook, enhancing the deliverability of your e‑commerce campaigns. If the server does not support TLS, the client may resort to STARTTLS, but it is then advisable to refuse unencrypted sending.
Modern servers use 'opportunistic TLS' mode combined with certificate validation (certificate pinning) to detect man‑in‑the‑middle attacks and ensure a high chain of trust.
How do DNS (SPF, DKIM, DMARC) ensure email authenticity?
DNS records allow receiving servers to verify that the message originates from the indicated domain. SPF lists the authorized servers for the domain. DKIM digitally signs the content with a private key; the receiver verifies the signature via the public key in DNS. DMARC combines both and specifies what to do (quarantine, reject) if checks fail. Properly configuring these three elements drastically reduces the risk of being classified as spam. DMARC reports, sent daily, provide visibility into spoofing attempts.
It is advisable to set up dedicated subdomains for marketing campaigns (e.g., mail.yourstore.com) and apply stricter DMARC policies on these subdomains to limit spoofing risks.
Why do open tracking and clicked links use invisible images?
Marketers often insert a small invisible pixel (1 × 1 px) hosted on a server. When it loads, the server records the IP address, time, and mail client, indicating that the recipient opened the message. Similarly, links are redirected via a tracker that captures the click before routing the user to the product page. Qstomy uses this mechanism to feed your analytics dashboards, allowing you to adjust your campaigns. It is important to inform recipients of this tracking in the privacy policy to remain compliant with regulations.
For privacy‑conscious users, you can offer a text‑only version of the email without pixels, or add the attribute alt invisible image description to remain transparent regarding GDPR requirements.
How to manage automatic responses (out-of-office) and bounces?
When the recipient server cannot deliver the message, it returns a 'bounce' with an error code (hard bounce: invalid address, soft bounce: mailbox full). Automatic responses (vacations, out-of-office) are messages generated by the recipient's server. A good mailing software, like Qstomy, analyzes these returns, disables failed addresses, and keeps your list clean to avoid deliverability penalties. 'Soft bounce' addresses are often retried several times before being removed from the active list.
Qstomy also integrates Feedback Loops (FBL) from major providers (Google, Microsoft) to receive spam complaints in real-time and automatically exclude them from future sends.
How does Qstomy help optimize each step of the sending process?
Qstomy directly integrates best technical practices: generating compliant headers, SPF/DKIM authentication via domain templates, automated TLS encryption, and real-time bounce tracking. Additionally, the platform offers email templates optimized for abandoned carts, order confirmations, and customer support, while ensuring every attachment (invoice, delivery note) stays below the size threshold. The Qstomy dashboard aggregates open, click, and complaint metrics, allowing for quick campaign adjustments. Thus, you benefit from maximum deliverability without managing server complexity yourself.
In addition, Qstomy offers integrated A/B testing and a pre-send deliverability score that indicates potential friction points, allowing you to optimize your campaign before launch.
What is a quick checklist before sending your next email campaign?
In short
Check headers : sender, subject, CC/BCC.
Authentifier SPF/DKIM/DMARC for the domain.
Compress images and limit attachments to 10 MB.
Test rendering on major clients (Gmail, Outlook).
Analyze bounces and clean inactive addresses.
FAQ
How long does it take for an email to arrive? Approximately a few seconds, depending on network distance.
Does my email stay on the server? Yes, unless the client deletes the message after downloading.
Does Qstomy handle automatic responses? Yes, the platform logs them and uses them to clean lists.
Before each send, perform an A/B test on a small segment of your base to measure the impact of the subject and pre-header. Finally, keep a history of KPIs to adjust your strategy over time.
To go further: Why does an e-commerce business fail in the first 12 months? - Qstomy, Email address error in an order: help the customer recover tracking, invoice, and account - Qstomy, AI chatbot for final sale: warn before purchase and avoid disputes - Qstomy, How to handle customer support for gift orders: privacy, invoice, and message? - Qstomy, How does data analytics serve e-commerce? Use cases by role and sources - Qstomy, How does e-commerce use email marketing? - Qstomy, E-commerce operations: from launch to profitable growth - Qstomy.

Enzo
October 30, 2026


