How to Configure Email Sending for Order Notifications (Transactional Email)

Order confirmations, shipping updates, and password resets are transactional emails your store depends on — using a proper transactional email setup (rather than your server's default mail function) is essential for reliable delivery.

Why the Default PHP mail() Function Isn't Reliable

Most e-commerce platforms default to PHP's built-in mail sending, which typically has poor deliverability — no proper authentication (SPF/DKIM), easily flagged as spam, and no delivery tracking or bounce handling.

The Better Approach: A Dedicated SMTP Relay

Configure your platform to send through a transactional email service via SMTP instead — providing proper authentication, delivery tracking, and much better inbox placement rates.

Step 1 — Choose a Transactional Email Provider

Several dedicated transactional email services exist, each offering SMTP credentials and/or an API for sending — choose based on your platform's supported integration methods and your expected sending volume.

Step 2 — Configure SMTP in WooCommerce (via WordPress)

Install an SMTP plugin for WordPress, then configure:

SMTP Host: smtp.your-provider.com
SMTP Port: 587
Encryption: TLS
Username: your-smtp-username
Password: your-smtp-password

Step 3 — Configure SMTP in Magento

Magento requires a third-party extension or custom module for SMTP configuration, since it doesn't include SMTP support natively — configure the extension with the same credential pattern shown above.

Step 4 — Configure SMTP in PrestaShop

Under Advanced Parameters → Email, PrestaShop has built-in SMTP configuration — enter your provider's SMTP details directly in this settings panel.

Step 5 — Verify Sender Domain Authentication

Configure SPF and DKIM records for your sending domain, as provided by your transactional email service — see How to Configure SPF, DKIM, and DMARC for Your Sending Domain, essential for avoiding spam folder placement.

Step 6 — Send a Test Order and Verify Delivery

Place a test order and confirm the confirmation email arrives promptly and lands in the inbox (not spam) across a few different email providers if possible (Gmail, Outlook, etc.).

Step 7 — Monitor Delivery Rates

Most transactional email providers offer a dashboard showing delivery, bounce, and spam complaint rates — review this periodically to catch deliverability problems early.

Customizing Email Templates

Most e-commerce platforms let you customize the content and styling of transactional emails (order confirmation, shipping notice) — ensure customized templates still include all essential order details customers expect.

Handling Bounced Emails

Configure your transactional email provider's bounce handling to flag or clean invalid customer email addresses over time, preventing repeated failed delivery attempts to addresses that no longer exist.

Common Errors

Emails send but land in spam — verify SPF/DKIM are correctly configured for your sending domain; this is the most common cause of transactional emails being marked as spam.

Emails don't send at all — verify SMTP credentials and port/encryption settings are correct; test the SMTP connection directly if the platform provides a test-send feature.

Continue Reading

Browse more articles in E-commerce Platform Deployment.

  • transactional email ecommerce, woocommerce smtp, order notification email, ecommerce email deliverability
  • 0 brukere syntes dette svaret var til hjelp
Var dette svaret til hjelp?

Relaterte artikler

How to Deploy WooCommerce on a VPS (Complete Guide)

WooCommerce turns WordPress into a full e-commerce platform — the most widely used option...

How to Install Magento Open Source on a VPS

Magento Open Source (formerly Magento Community Edition) is a powerful, highly customizable...

How to Install PrestaShop on a VPS

PrestaShop is an open-source e-commerce platform offering a good balance between feature depth...

How to Install OpenCart on a VPS

OpenCart is a lightweight, straightforward open-source e-commerce platform — a good fit for...

How to Optimize a VPS for High-Traffic E-commerce

E-commerce stores face unique performance challenges — dynamic cart/checkout pages that...