Sending mail in the application is a common feature. After a large number of user practice feedback, only one way to send an email is recommended, that is, using the third-party STMP service to send the email.
SMTP General settings
There are three steps for SMTP to send mail in your application:
Step1: Install SMTP Extension
Login to Marketplace of Magento, find the STMP plugin (by Mageplaza)
Buy it
- Install it
Step2: Configure SMTP Extension
- Login Magento, go to Admin->MAGEPLAZA,在右边菜单选择应用配置管理;
- Fill in the SMTP information
Step3: Configure the Email Address of Store
- 首先进入应用配置管理页面:
- 按照下图设置邮箱:
SMTP Test failure
If your SMTP is correct but you can not send email, please follow the steps below to diagnose
- Login to Server, running these commands, using the Telnet to test SMTP connectivity
//Install telnet
yum install telnet -y
//Test SMTP, E.g Gmail mail
telnet smtp.gmail.com 465
- If received the message “220 smtp..com Esmtp Mail Server“ or “Escape character is ‘^]’“, it means your SMTP is connectable
Your Server IP address may be blocked by the STMP Server for some reason and it not connectable
- If your SMTP is connectable but you still can’t send mail by SMTP, please review these below
- If your application is using mail(), you should know that mail() is not supported SMTP validation
- If your application use PHPMailer extension for SMTP, make sure PHPMailer was been included
- PHP’s OpenSSL extension has been installed and default enabled on LAMP. If your SMTP Provider need SSL log in, please make sure you have not disable OpenSSL
- External access is prohibited by Security Group (out settings)