

- #SMTP EMAIL SETTINGS FOR GMAIL INSTALL#
- #SMTP EMAIL SETTINGS FOR GMAIL PASSWORD#
- #SMTP EMAIL SETTINGS FOR GMAIL FREE#
None: when you select this protocol, you have to accept all the risk may occur in the process of sending.Protocol: pass this step if you had chosen Auto fill, or you can select one of the providing protocol below here.
#SMTP EMAIL SETTINGS FOR GMAIL PASSWORD#
After saving, the password will be encrypted into ******
#SMTP EMAIL SETTINGS FOR GMAIL FREE#
If you had clicked Auto fill button at the above field, you can give this step a free pass. You can also custom STMP Provider’s Host name at here. Click Auto Fill button to fill Host, Port, Authentication and Protocol automatically, which are compatible with the SMTP provider you had chosen.Īt Host field, type your Support Host name and ID Address. In SMTP Provider field, at the moment we support provider nearly 30 SMTP email service providers so feel free to choose your appropriate provider. Still from the same structure with General Configuration, scroll down to see SMTP Configuration Options.
#SMTP EMAIL SETTINGS FOR GMAIL INSTALL#
It will automatically install SMTP module

Run the following command in Magento 2 root folder composer require mageplaza/module-smtp To setup SMTP you can follow these simple steps: Throw new \Magento\Framework\Exception\MailException(new \Magento\Framework\Phrase($e->getMessage()), $e) Īlso, you can reference this article, it may help you. * \Magento\Framework\Exception\MailException Parent::_construct($smtpHost, $smtpConf) 'password' => $this->_scopeConfig->getValue('system/gmailsmtpapp/password', \Magento\Store\Model\ScopeInterface::SCOPE_STORE) 'username' => $this->_scopeConfig->getValue('system/gmailsmtpapp/username', \Magento\Store\Model\ScopeInterface::SCOPE_STORE), 'ssl' => $this->_scopeConfig->getValue('system/gmailsmtpapp/ssl', \Magento\Store\Model\ScopeInterface::SCOPE_STORE), 'auth' => $this->_scopeConfig->getValue('system/gmailsmtpapp/auth', \Magento\Store\Model\ScopeInterface::SCOPE_STORE), $smtpHost = $this->_scopeConfig->getValue('system/gmailsmtpapp/smtphost', \Magento\Store\Model\ScopeInterface::SCOPE_STORE) I found an useful extension GmailSmtpApp and followed the Transport.php to configure setting for Gmail SMTP service.īe careful that, the ssl should be set to 'SSL', if it is set to tls, it will not work! _scopeConfig = $scopeConfig
