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
- How to Configure SPF, DKIM, and DMARC for Your Sending Domain
- How to Deploy WooCommerce on a VPS (Complete Guide)
- How to Check if Your Email Server Is Blacklisted (RBL Check Guide)
Browse more articles in E-commerce Platform Deployment.