Configure Magento 2 to use SMTP server to send email
Magento2 module for setting up and using SMTP mail
This enables you to use any SMTP server to deliver your magento emails. This module was tested with magento versions 2.0.x and 2.1.x, but should work for all magento 2.x versions.
If you have any issues using this module, you may contact us at [email protected]
Most emails delivered using sendmail (default mail daemon used for sending mails on Linux) will either get blocked by an ISP or be flagged as SPAM. By Using SMTP server for delivering emails, you can ensure quick and reliable delivery. Also, if you need to send out a high number of emails to your users, most hosting companies won't allow it using their shared mail servers. So, you really don't have any option if you want to send bulk emails (For example, newsletters) to your customers.
composer require czonetech/smtp-mail
Using command line access to your server, run the following commands -
$ php -f bin/magento module:enable --clear-static-content CzoneTech_SmtpMail $ php -f bin/magento setup:upgrade
Log into your Magento Admin, then goto 'Stores -> Configuration -> CzoneTech Modules -> Smtp Settings' Enter the SMTP server settings