By default, Magento hands its emails to the mail program of the web server, which often leads to emails ending up in spam folders or not arriving at all. SMTP sends all emails of the store, such as order confirmations, invoices or password resets, through the SMTP server of your email provider instead. A second server can be configured as a backup, and every email is logged so you can check what was sent.
Features
- Sending of all store emails through an SMTP server with host, port, encryption (none, TLS or SSL), authentication method, user name and password.
- A second server (“Server Priority #2”) that is used automatically when sending through the first server fails.
- Optional fallback to Magento’s standard sending if both servers fail (“Allow system fallback”).
- A Send Test Mail button that tests the settings currently entered in the form, before you save them, for either of the two servers.
- Infrangible > SMTP > Logs lists every email with sender, recipients, subject, status and date. Each entry can be opened to see the full email including its content and, for failed emails, the error message.
Configuration
All settings are under Stores > Configuration > Infrangible Solutions > SMTP: General (enable the module and the system fallback), Server Priority #1 and Server Priority #2 (enable the server and enter the connection details) and Test Mail (choose a server, sender and receiver, then click Send). Access to the settings and to the logs can be granted per admin role.
Good to know
The log keeps the content of every email, including personal data of customers; it is not cleaned automatically. Uses “Simple Mail” and “Backend Widget”, which are installed automatically.
Installation
Install the module with Composer in your Magento root directory:
composer require infrangible/m2-smtpThen enable it and update the store as described in the installation guide. Composer installs the required modules listed on this page automatically.