Magento 2 SMTP Extension
See Magento 2 SMTP Extension in action
A short walkthrough of the storefront and admin, built from real screenshots.
Authenticated Magento email delivery
- Any SMTP Host Gmail, SES, SendGrid+
- OAuth Options Google and Microsoft
- Email Log History and previews
- Test Send Verify before go-live




Reliable authenticated email
Default Magento email can be unreliable, land in spam, and give little failure visibility. Toweringmedia SMTP routes mail through authenticated providers with logging, test send, and modern OAuth options.
- Presets for Gmail, SES, SendGrid, Office 365, or custom
- TLS/SSL with Login, Plain, CRAM-MD5, or OAuth
- Google XOAUTH2 and Microsoft OAuth support
- Admin email log with content preview and debug mode
- Send test email from the configuration panel
Built for your store
Fits Magento 2.4.x stores that need provider flexibility, staging controls, and store-view scoped SMTP settings.
- Works with Magento 2.4.x Open Source & Adobe Commerce
- PHP 8.1–8.5 compatible
- Configure under Toweringmedia SMTP Email Settings
- Disable delivery for staging and optional blacklist
- Works with Magento’s email queue and Hyvä storefronts
How It works
Magento 2 SMTP Extension
Stop Losing Orders to Email Delivery Failures. Configure SMTP in Minutes.
The Toweringmedia SMTP Extension for Magento 2 replaces the unreliable PHP mail() transport with a hardened, authenticated SMTP connection. Order confirmations, password resets, shipping notifications, and all other transactional emails reach inboxes—not spam folders—regardless of your hosting provider.
Connect any SMTP service in minutes: Gmail, G Suite, Outlook 365, SendGrid, Mailgun, Amazon SES, Zoho, or a self-hosted mail server. Supports both classic username/password auth and modern OAuth2/App Password methods so your store stays compliant as providers phase out legacy credentials.
Also on Adobe Commerce Marketplace.
Broad Provider Support
Any SMTP Server, Any Provider — One Admin Panel
Configure your SMTP host, port, encryption protocol (TLS or SSL), and credentials in a single Magento admin section at Stores → Configuration → Toweringmedia → SMTP. Pre-configured templates for popular providers fill in the technical fields automatically—choose Gmail from a dropdown and only the credentials remain to enter.
For Amazon SES users, the extension supports IAM key/secret auth alongside standard SMTP credentials. SendGrid and Mailgun API key authentication is also supported, so you can use their SMTP relay without managing dedicated IP whitelists on your own server.
- ✓ Gmail / Google Workspace (App Passwords + OAuth2)
- ✓ Microsoft Outlook / Microsoft 365
- ✓ Amazon SES (SMTP relay + IAM credential support)
- ✓ SendGrid, Mailgun, Postmark, SparkPost
- ✓ Zoho Mail, Yahoo Mail, custom SMTP servers
- ✓ Ports 25, 465, 587 — any custom port supported
Logging & Debugging
Diagnose Email Issues Without Touching a Server Log
Every outgoing email is captured in a built-in admin email log accessible at Marketing → SMTP → Email Log. Each log entry records the recipient, subject line, send timestamp, delivery status (sent / failed), the full body HTML, and any SMTP error message returned by the server.
When configuration problems occur, you see the exact SMTP handshake error—connection refused, authentication failed, TLS negotiation error—directly in the Magento admin. A Test Send button lets you verify credentials and routing to any recipient before going live, with no need for SSH access or reading raw mail logs.
- ✓ Full email log with subject, recipient, status & body
- ✓ Precise SMTP error messages — no vague failures
- ✓ Test Send to any address from admin
- ✓ Log retention period configurable (7–365 days)
- ✓ Manual log purge from admin UI
Multi-Store & Security
One Extension. Every Store View. Sender Reputation Protected.
Multi-store Magento installations can configure a separate SMTP server per store view—your EU store uses a regional SES endpoint while your US store routes through Gmail. Each store view can have independent sender name, reply-to address, and credentials.
Authenticated SMTP delivery significantly improves SPF, DKIM, and DMARC alignment because emails originate from a relay your domain explicitly authorizes. Combined with TLS encryption, this protects both message content in transit and your sender reputation with inbox providers.
- ✓ Per-store-view SMTP server configuration
- ✓ Per-store-view sender name & reply-to address
- ✓ TLS encryption in transit (STARTTLS & TLS)
- ✓ Improves SPF/DKIM/DMARC alignment
- ✓ Compatible with Hyvä, React Checkout Pro & all Magento email types
Compatibility & Technical Specs
Magento Version
2.4.4 – 2.4.7+ (Open Source & Adobe Commerce)
PHP
PHP 8.1, 8.2, 8.3
SMTP Ports
25, 465, 587, custom
Encryption
TLS (STARTTLS), SSL
Hyvä Compatible
Yes — no frontend JS required
Composer
toweringmedia/module-smtp
Works Great With
Frequently Asked Questions
Does the Magento 2 SMTP extension work with Gmail, SendGrid, and AWS SES?
Can I send a test email to verify configuration?
Does it support multiple store views with different SMTP configurations?
Is this SMTP extension compatible with Hyvä themes?
Does it log outgoing emails for debugging?
Key Features
Replace PHP mail() with provider SMTP, OAuth where needed, full outgoing logs, and store-scoped configuration.
- Provider presets Gmail, Office 365, SendGrid, Amazon SES, or custom host and port.
- TLS and SSL Connection security with Login, Plain, CRAM-MD5, or OAuth.
- Google OAuth 2.0 XOAUTH2 for Gmail and Google Workspace without app passwords.
- Microsoft OAuth Microsoft 365 tenant modes with client credentials and refresh tokens.
- Outgoing email log Admin Email Log with content preview and debug mode.
- Send test email Validate host, auth, and encryption from the configuration panel.
- Delivery controls Disable delivery for staging and optional blacklist handling.
- Store-view scope Different SMTP settings per website or store view when needed.
Demo
Docs & Support
📘 Documentation
Get started quickly with our detailed user guide. The documentation covers everything from installation to advanced SMTP configuration.
- Step-by-step installation instructions
- SMTP setup with Gmail, Outlook, Amazon SES, and more
- Email testing and verification
- Error logging and debugging
- Configuration best practices for high deliverability
💬 Support
Need help? Our Magento experts are here to assist you with setup, configuration, and troubleshooting.
- Quick and reliable email support
- Help with installation and SMTP configuration
- Troubleshooting email delivery issues
- Guidance for third-party email providers
- Regular updates and compatibility support
Reviews
5.0 Based on 1 review
-
Highly reliable
Highly reliable SMTP extension with easy setup and smooth configuration. Supports major providers and includes excellent debugging tools. Improves email deliverability and ensures important emails never fail.
Sarah K
Frequently Asked Questions
What does the Magento 2 SMTP Extension do?
The Towering Media Magento 2 SMTP Extension allows Magento stores to send transactional emails through authenticated SMTP providers instead of relying solely on the server's default mail transport. It supports order confirmations, invoices, shipping notifications, password resets, and other Magento-generated emails.
Where do I configure SMTP settings and view email logs?
Go to Stores → Configuration → Toweringmedia → SMTP Email Settings to configure SMTP providers, authentication, encryption, and test emails. To review outgoing email history, open Toweringmedia → SMTP → Sent Emails. Detailed connection and error information is available under Toweringmedia → SMTP → Debug Logs.
Which SMTP email providers are supported?
The extension supports Gmail, Google Workspace, Microsoft Office 365, SendGrid, Amazon SES, and custom SMTP servers. Administrators can select a supported provider preset or manually configure the SMTP hostname, port, authentication method, username, password, and connection security.
Does the Magento 2 SMTP Extension support OAuth 2.0 authentication?
Yes. The extension supports Google OAuth 2.0 (XOAUTH2) for Gmail and Google Workspace, along with Microsoft OAuth integration for supported Microsoft email workflows. Traditional SMTP authentication methods, including Login, Plain, and CRAM-MD5, are also available. OAuth configuration requires appropriate provider application credentials and authorization.
Can I send a test email from Magento Admin?
Yes. Navigate to Stores → Configuration → Toweringmedia → SMTP Email Settings, enter an email address in the Send Test E-mail To field, and click Send Test Email. This helps verify SMTP connectivity, authentication, and message submission before using the configuration for customer emails.
Can I track sent emails and troubleshoot delivery failures?
Yes. When email logging is enabled, the extension records outgoing messages with details such as recipients, subjects, timestamps, sending status, and email content. Administrators can also enable debug logging to investigate SMTP connection failures, authentication errors, and transport problems. A successful sending status does not guarantee inbox delivery.
Does the extension automatically clean up old email and debug logs?
Yes. The extension includes configurable retention settings for sent email logs and debug logs. Magento cron processes automatic log cleanup based on the configured retention periods. Setting a retention value to 0 disables automatic cleanup for that log type.
Can I prevent Magento from sending emails to real customers in a staging environment?
Yes. The extension provides options to disable outgoing email delivery or restrict recipients using a domain allowlist. You can specify approved email domains for development and staging environments and optionally redirect blocked messages to a designated address. An email blacklist is also available to block specific recipients.
Does the SMTP Extension notify administrators when OAuth authentication fails?
Yes. The extension supports administrator alerts for specific Google and Microsoft OAuth failures, including revoked or invalid credentials and token refresh problems. Alerts can be sent through PHP sendmail independently of the affected OAuth SMTP connection. Optional Twilio SMS notifications require the corresponding React Checkout Pro Phone Verification configuration. Alert throttling helps prevent repeated notifications.
Is the Magento 2 SMTP Extension compatible with Hyvä, Luma, and Magento 2.4.x?
Yes. The extension operates primarily at the Magento email transport and administration level, so it does not require a separate Hyvä compatibility module. It works independently of Hyvä and Luma storefront themes. The current Composer package permits PHP 8.1 through 8.5, subject to the installed Magento version and dependency compatibility. Toweringmedia Base and the required Magento components must also be installed.
Technical Specifications
- Magento Version: Compatible with Magento 2.4.x (Open Source & Adobe Commerce)
- PHP Version: PHP 8.1, 8.2, 8.3, 8.4, 8.5 compatible
- Framework: Built using Magento 2 native architecture (no core overrides)
- Installation Type: Composer / Manual installation supported
- Module Dependency: Requires Toweringmedia Base (toweringmedia/module-base)
- Email Protocol: SMTP (Simple Mail Transfer Protocol)
- Authentication: Username/password plus Google XOAUTH2 and Microsoft OAuth 2.0
- Encryption Support: SSL / TLS
- SMTP Providers: Gmail, Outlook, Amazon SES, SendGrid, Mailgun, and others
- Email Logging: Built-in email log and error tracking
- Multi-Store Support: Yes
- Store Scope Configuration: Website / Store View level
- Test Email Feature: Available from admin panel
- Queue Compatibility: Works with Magento email queue system
- Cron Support: Fully compatible with Magento cron jobs
- Admin Configuration Path: Stores → Configuration → Toweringmedia → SMTP Email Settings
- Override Default Mail: Yes (replaces Magento default mail transport)
- Security: Supports secure authentication and encrypted communication
- Performance Impact: Minimal (lightweight implementation)
Compatible with your Magento 2 store
Compatible with Magento 2.4.x (Open Source and Adobe Commerce) and PHP 8.1, 8.2, and 8.3. Requires toweringmedia/module-base. Configure under Stores → Configuration → Toweringmedia → SMTP Email Settings, or Stores → SMTP Email → SMTP Configuration. Works with Magento’s email queue and Hyvä storefronts (transport-layer module).
-
Magento 2.4.x
Open Source & Adobe Commerce
Updates & supportKeep your store running smoothly