Stop losing order emails to a broken mail() function
TVTCommerce_SmtpConfig swaps Magento's default PHP mail()/sendmail transport for real, authenticated SMTP — the actual fix for "orders place fine but the confirmation email never shows up."
Free forever, no credit card — just a free TVT Commerce account so we know where to send updates.
One dropdown, six providers, real error messages
Everything you need to get authenticated mail sending working today, without hunting through Magento's SMTP docs.
Provider presets
Pick Gmail, Outlook/Office 365, Yahoo, SendGrid, Mailgun, Zoho, or Amazon SES and Host/Port/Encryption auto-fill. Every field stays editable.
Real error messages
Magento's own transport always reports the same generic failure. This module's Test Email page shows the real cause — wrong host, bad credentials, TLS failure.
Test before you rely on it
Send a real test email on demand from TVT SMTP > Test Email, defaulted to your own logged-in admin address.
Encrypted credentials
Passwords/API keys are stored with Magento's own config encryption — the same mechanism used for payment gateway keys.
Every outbound email
Order confirmations, password resets, invoices, admin notifications — anything Magento sends goes through SMTP once enabled.
Opt-in only
Leave "Enable SMTP Sending" set to No and the module does nothing at all — stock Magento mail behavior, untouched.
How it works: Magento resolves its mail transport through dependency injection every time it builds an email. This module registers a <preference> that swaps in its own transport — SMTP when enabled, or a plain, unmodified sendmail fallback when disabled. No core files are patched.
Install & configure
1Copy this module into app/code/TVTCommerce/SmtpConfig, or add it as a Composer path repository and run composer require tvtcommerce/module-smtp-config:@dev.
bin/magento module:enable TVTCommerce_SmtpConfig
bin/magento setup:upgrade
bin/magento cache:flush
2Go to Stores > Configuration > TVTCommerce > SMTP Config, pick a provider, enter your credentials, and turn SMTP sending on.
3Go to TVT SMTP > Test Email in the admin menu and send yourself a test to confirm it works.
| Field | Config path | Default |
|---|---|---|
| Enable SMTP Sending | tvtcommerce_smtp/general/enabled | No |
| Provider | tvtcommerce_smtp/general/provider | Gmail |
| SMTP Port | tvtcommerce_smtp/general/port | 587 |
| Encryption | tvtcommerce_smtp/general/encryption | TLS |
SendGrid users: the Username field is literally the string apikey — your actual API key goes in Password.
Need more than email delivery?
This module is free and focused on one job. If you're looking for more, TVT Commerce also builds AI Copilot — an in-admin assistant that can help diagnose delivery issues conversationally, plus AI Merchandiser for pricing, reorder, and dead-stock suggestions.