SMTP Email Settings for Magento 2

Minimize the chance to get into spam with a reliable SMTP server configuration. Strengthen your reputation as a trusted sender and improve the efficiency of email marketing campaigns thanks to unmatched correspondence delivery.
  • Apply ready-made settings of 12+ providers
  • Set your own configuration
  • Use OAuth 2.0 authentication method for Google and Microsoft accounts
  • Test configuration using debug mode
  • View the content of sent emails
  • Log all sent emails
  • Automatically clean logs
  • NEW: Add email addresses to blacklist
  • Hyva-compatible by default
  • New!Hyvä Checkout ready
Add to Wish List
Product updates and support for 12 months

Updates and support prolongation - $79

more info

Pick a combo deal with 15% discount:

Save $86.55

How do Magento 2 Email Settings contribute to your business growth?

Avoid impact on reputation -
put into service trusted email providers with a secured connection


Grow customer base -
deliver notifications without being marked as a spam


Gain revenue -
make your email marketing perform better

🚩  Challenge

The default Magento settings use the installation server to send emails. But the reputation of such emails is low, and in most cases, they are marked as untrustworthy. As a result, your notifications and marketing campaigns end up in a spam folder, and you waste a lot of time trying to get out.


Magento 2 SMTP Email extension is a tool that includes the configuration of reliable SMTP servers. The main goal of the module is to help you deliver emails successfully, e.g. connect your store to Gmail to implement the most popular sending hosting and decrease the rejection level.

Effectively deliver emails of any type right to the subscriber’s inbox

Ensure secure mail transfer: choose one of the predefined providers and use the autofill feature or set up your own secure mail transfer protocol by configuring Magento 2 SMTP authentication method, server address, port, etc.

Safely test configuration: check the result with the built-in functionality for running the tests of Magento 2 SMTP email setup and exclude any chance of affecting customer loyalty.


NEW: Utilize OAuth 2.0 Protocol to comply with Microsoft Standards

From December 2022, Microsoft deprecated basic (login/password) authentication and switched to a more secure OAuth 2.0 Protocol.

That’s why now it is possible to choose Microsoft OAuth 2.0 as the authentication method for Office365 in our Magento 2 SMTP Email Settings extension.

Track all activities with the Magento 2 SMTP module


Take control over all sent emails

Magento 2 SMTP extension registers and logs all letters that are sent from your store.

  • Segment recordings by status. Check the current status of the emails. Sort out successfully sent, pending, or failed ones using filters or grid sort order.
  • Check the dates, subjects, and recipients. You can see what, when, and to whom the email was sent.
  • View email content in one click.You can preview the frontend layout of any email right in the grid.

Use debug mode and log all errors

Debug mode emulates the work of the Magento 2 email SMTP server without sending out any emails. If any errors occur you will see them in the log and make fixes without reconsidering all the settings. Clear the log manually or automatically after a certain period of time.

Specify settings for multiple websites

If you manage multiple Magento stores from one backend, it’ll be quite useful for you to specify such Magento 2 mail sending settings as a server address, a provider and others for each store separately.

See how to set multiple stores up here.

Automatically clean old records

To avoid manual log clearing, you may enable an automatic clearing option. To apply it, just set a particular number of days after which log records will be removed. If you don’t want to enable the option, just set the number of days to zero.

Efficiently manage cron tasks

Manage all existing cron tasks on a Cron Tasks List grid from the admin panel. Run cron tasks and generate their schedule by clicking the ‘Run Cron’ button. Delete tasks in bulk, use filtering and sorting options when it is needed.

Advanced options for successful delivery: SPF record

For increasing the chance of delivery, the extension allows you to apply even more enhanced technologies, and SPF Record is one of them. SPF (or Sender Policy Framework) is a special data validation framework that detects notifications with fake sender addresses and identifies them as spam. The challenge is to avoid these rejections, and the Magento 2 SMTP module setup can help.

Even though SPF configuration is optional, keep in mind that if you replace a sender and do not properly configure the SPF record, your emails are likely to end up in a spam folder. To reduce the possibility of being marked as “suspicious”, you may do the following (based on what you prefer to equip for sending):


Configure SPF record for your own SMTP server

You may set the Magento 2 configuration for your own email server using your domain. The extension supports both IPv4 and IPv6 addresses. All you need to do is to specify the necessary domain and addresses in the SPF record. Moreover, you can forbid the receiving of emails that are not specified in your record. Check the details of the configuration here.


Adjust SPF record for Google Apps

It is also possible to set the same record for Google Apps services, but it will have particular differences. In case you use this service for dispatch, you’ll need to activate the specific SPF configuration for Google Apps. If you use the service only to receive emails while dispatching is processed by your own server, the Magento 2 SMTP settings will have some peculiar properties as well. And, of course, you can configure the record even though you use Google Apps for both receiving and sending your notifications. Click here to find out how exactly the Magento 2 SMTP configuration has to look like.

Frequently asked questions

Email sender replacement is used to avoid overflowing. Customers will not see the letter you usually use as the sender will be changed. This feature is available in case you have your own Simple Mail Transfer Protocol server.

To replace the sender you need to perform 3 simple operations:

  • Find the SMTP Provider setting and select the ‘Other’ option in the dropdown.
  • Go to the ‘Use another Email Sender’ setting and switch the value to ‘Yes’.
  • Fill in the ‘Sender Email’ and the ‘Sender Name’ options with the necessary data. Here you can provide a real email or set a non-existing one.
  • Install and enable Amasty SMTP Email Settings.
  • To configure Magento 2 SMTP email server, navigate to Stores > Configuration >Amasty Extensions > SMTP Email Settings and open the SMTP Configuration section.
  • In the ‘SMTP Provider’ dropdown, choose one of the pre-defined providers or click the ‘Other’ option if you own a server.
  • Enter your Login, Password if required, and address for testing purposes.
  • Then click, Save and Check Connection.
  • Save the configurations.

To sum up, you can connect Magento to external mail server by choosing one of the pre-defined providers or it is also possible to select the "Other"option from the dropdown if you own a server and ready to fill in information about it.

  • Log in to the admin panel and go to Stores > Settings > Configuration.
  • In the Customers tab, choose the Newsletter option.
  • Open the Subscription Options section.
  • Choose the template and sender for default emails.
  • Enable the double opt-in and allow guest subscription if needed.
  • Save the changes.

It is important to configure Magento 2 SMTP. A qualitative Simple Mail Transfer Protocol server is capable of dispatching a large volume of correspondence quickly, avoiding the ISP's restrictions. If you implement an external SMTP email server on Magento, the security of messages and the percentage of their delivery to the inbox is greatly increased.

This tool helps to increase the likelihood of email delivery as the extension allows even more advanced technologies such as SPF Record. What's more, it allows you to increase your store's customer base by delivering correspondence that won't be flagged as spam.

Adobe partner logo
Magento Marketplace logo
See 500+ verified reviews
1 Single points of sales
Trusted by Customers
Are Amasty extensions compatible with all themes and extensions by other vendors?
Amasty extensions work with all plugins we issued and with most 3rd-party plugins. If you come across a Magento 2 compatibility issue with any third-party module, we’ll definitely try to help you. If you face any technical issues, please create a ticket...
Will I get free support and updates?
Product updates for extensions purchased before Feb 1, 2022With the transition to product subscriptions, you will receive product updates for all extensions purchased before Feb 1, 2022 throughout the entire grace period — up to Aug 1, 2022. If you ...
Do you have the installation service?
Yes, you can use installation and configuration services that are available as the part of Pro and Premium add-ons for your product subscriptions.Please note that this installation service doesn’t include uninstallation. So, if you need to completely...
Can I request a free trial?
Amasty doesn’t provide any trials of Magento extensions. There's one exception: Amasty extensions are provided for testing or demo purposes to our official Platinum Partners as a part of the “access to Amasty extensions for testing purposes with Composer...
Can I test an Amasty extension on a staging site before transferring it to a live one?
Yes, you can install any Amasty extension on a test site and configure all the settings there before doing it on your live store.
How can I get a refund?
Amasty offers to its Customers a thirty (30) day money-back guarantee for the Software. In case the acquired extension didn’t meet your expectations, our support team is always ready to help you. Fees for support subscriptions and any services provided...
How can I receive a discount?
We are now working at a loyalty program for our customers that is supposed to bring even greater benefits in the long term. While it’s not out yet, you can look through these Special Offers. New discounts and specials are added every month. To stay ...
How to update a Magento 2 Amasty extension?
To update a Magento 2 extension by manual upload:1. log in to the customer account;2. navigate to the Products tab, scroll to the packages section, and click the Download link next to the extension that should be updated;3. Important: If some extension...
If I need additional features to be added to an Amasty extension, how can I ask for it?
To leave your feature request, log in to your customer account and open the Products tab. Then, scroll down to the bottom of the page, and leave your feature request in the following form: As soon as you send your request, it is considered by our ...
Magento 2 Amasty extensions installation
Each Amasty extension package is provided with the extension files, installation & setup guides, and a license agreement. Some extensions include import files examples as well. So how to install our Magento extension? What is the plugin...
How can I prolong support?
If you have an active support service subscription, it grants you access to support services for all products purchased before Feb,1 as long as your subscription is active. Alternatively, support services are only available as the part of a product ...
Can I change the EE extension to CE for free?
Usually, no, you can’t exchange modules. Please, contact our support managers and they’ll consider your case individually. → Learn more about our special offers
How can I get a discount to re-purchase plugins?
Usually, we don’t provide any discounts. But you can contact us, and we’ll consider your case individually. → Learn more about our special offers
What is the license policy? On how many websites can I use Amasty extensions?
Our license allows you to use a single extension license agreement on one Magento installation.If you run several domains on the same instance of Magento, you can use one extension license. However, if you run each website on a new installation of Magento...
How can I pay for Amasty extensions?
You can pay for our extensions in any convenient for you way as a full range of payment methods are supported. The most common means are credit card or PayPal. Security and fraud protection are guaranteed. If you need to pay for the order with a non...
I'm getting AUTHORIZATION FAILED 534 5.7.14 error in the debug log but my credentials is 100% correct. What should I do?

The extension can't use mail server to send anything due to mismatching login credentials. If you are sure provided credentials are 100% correct please proceed with READ the Full answer link.

I'm getting connection refused or connection timed out error in debug log. What should I check?

If you're connecting from behind the firewall, make sure the firewall rules allow you to connect the specified mail server. 

What should I do if emails are not being sent out via Amasty SMTP extension?

Having troubles with sending emails? Try disabling the extension in main module configuration page and check if you're getting the same result with Magento default PHP sendmail. Please proceed to READ the Full answer link to get further instructions.

Customer Reviews

Do you need specific features added so you can achieve your business goals?

Drop us a line and we'll customize this extension for you!

You can always download the recent version free of charge from your account installing an upgrade is easy

See Magento (and other software) versions we support and guarantee their compatibility with our extensions

Version 2.1.1
Last Update: Feb 20, 2024
2.1.1 - Feb 20, 2024
  • 2.1.1
  • Fix we removed the dependency on the deprecated Zend classes
2.1.0 - May 29, 2023
  • Improvement we added a Blacklist functionality. Now you may add emails to blacklist manually, and invalid email addresses are automatically blacklisted
  • Fix we fixed the issue with login/password authorization and TLS connection security when SMTP Provider "Other" is selected
  • Fix now 200 (HTTP_OK) code is accepted when establishing Office365 SMTP connection
  • Fix we improved the behaviour to make sure autofill fields appear right after clicking the Autofill button
Version 2.0.1
Last Update: Mar 13, 2023
2.0.1 - Mar 13, 2023
  • Compatibility now the extension is compatible with Magento 2.4.5-p2, 2.4.6
2.0.0 - Dec 06, 2022
  • New we added OAuth 2.0 authentication for Office365
  • New now the extension sets Message ID header
  • Improvement we switched the extension to the declarative schema
  • Improvement we marked the configuration data as sensitive so that it’s not stored in config.php
  • Improvement we improved compatibility with Hotmail SMTP provider
  • Fix we eliminated the error with deprecated htmlspecialchars_decode() functionality
Version 1.2.3
Last Update: Mar 23, 2022
1.2.3 - Mar 23, 2022
  • Fix we eliminated the issue with authentication via G-Suite
1.2.2 - Mar 10, 2022
  • Compatibility now the extension is compatible with Magento 2.4.4
1.2.1 - Jan 03, 2022
  • Fix we fixed the error that occurred in saving the configuration for website scope
1.2.0 - Feb 03, 2021
  • New we added new authentication methods OAuth 2.0 for Google Accounts to comply with Google standards for secure apps
Version 1.1.14
Last Update: Dec 11, 2020
1.1.14 - Dec 11, 2020
  • Fix we fixed the issue with getting sender data for test emails
1.1.13 - Jul 28, 2020
  • Compatibility the compatibility with Magento 2.4 was added
1.1.12 - Apr 09, 2020
  • Fix we fixed the issue with sending a test email
  • Fix we fixed getting of configuration data by store ID
  • Fix we fixed getting of current store during cron job
1.1.11 - Dec 17, 2019
  • Fix we solved the problem with emails sending in Magento 2.2.?
  • Fix we solved the problem with incorrect email headers with utf-8 chars
1.1.10 - Dec 04, 2019
  • Improvement we reviewed and enhanced the code
  • Fix we solved the problem with order placing from admin
  • Fix we solved the problem with sending email using Amazon SES SMTP
  • Fix we solved the problem with incorrect email text in email logs
1.1.9 - Oct 30, 2019
  • Fix we solved the problem with sending of emails that contained umlaut and other utf-8 symbols in the body.
  • Fix we solved the problem with emails sending in Magento 2.3.3
  • Fix we fixed a search problem on the Sent Emails Log page.
1.1.8 - Sep 19, 2019
  • Improvement we reviewed and enhanced the code
1.1.7 - Jul 29, 2019
  • Improvement we added the possibility to use symbols like \"ö\", \"ä\", etc for the sender name
  • Fix we fixed the issue with the ' Save and Check Connection' action
  • Fix we fixed the issue with sending emails from the default config sender
1.1.6 - Jun 13, 2019
  • Fix the issue with the website scope on the 'Save and Check Connection' action was resolved
1.1.5 - Apr 09, 2019
  • Fix the issue when using the default sender email and configuration instead of the ones from the Store VIew configuration was resolved
1.1.4 - Mar 27, 2019
  • New the ability to manage all existing cron tasks on a Cron Tasks List grid in backend was added. Run cron tasks and generate their schedule by clicking the ‘Run Cron’ button. Also, delete tasks in bulk, use filtering and sorting options when it is needed
1.1.3 - Jan 15, 2019
  • Fix smtp setting issues related to scopes were fixed.
  • Fix Magento 2.3 compatibility issue was resolved.
1.1.2 - Oct 22, 2018
  • Improvement now, you can see the full list of recipients in the history of sent emails
1.1.1 - Aug 01, 2018
  • Compatibility the compatibility with Magento 2.2.5 was improved
  • Fix the issue with sending emails from the admin panel was resolved
1.1.0 - Jul 04, 2018
  • New the ability to replace email sender was added
  • Improvement the code was enhanced
Version 2.4.0
Last Update: Jul 04, 2018
2.4.0 - Jul 04, 2018
  • New ability to read/update/create rules via Magento API was added
  • New ability to read/update/create rules via Magento API was added
  • New ability to read/update/create rules via Magento API was added
  • New ability to use discount \"Each N-th Same Product Discount\" for each item in cart was added
  • New ability to use discount \"Each N-th Same Product Discount\" for each item in cart was added
  • New ability to use discount \"Each N-th Same Product Discount\" for each item in cart was added
Version 1.0.4
Last Update: Sep 19, 2017
1.0.4 - Sep 19, 2017
  • Magento 2.2 compatibility improved
1.0.3 - Aug 30, 2017
  • Magento 2.2 compatibility introduced
1.0.2 - Apr 12, 2017
  • Compatibility improvements
1.0.1 - Jun 16, 2016
  • Use specific store settings when creating order or sending order e-mail from the backend

Ratings & Reviews

97% of 100