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

  1. Login to Marketplace of Magento, find the STMP plugin (by Mageplaza)
    image.png

  2. Buy it
    image.png

  3. Install it

Step2: Configure SMTP Extension

  1. Login Magento, go to Admin->MAGEPLAZA,在右边菜单选择应用配置管理;
    Send Mail by SMTP - 图3
  2. Fill in the SMTP information
    Send Mail by SMTP - 图4

Step3: Configure the Email Address of Store

  1. 首先进入应用配置管理页面:
    Send Mail by SMTP - 图5
  2. 按照下图设置邮箱:
    Send Mail by SMTP - 图6

SMTP Test failure

If your SMTP is correct but you can not send email, please follow the steps below to diagnose

  1. Login to Server, running these commands, using the Telnet to test SMTP connectivity
  1. //Install telnet
  2. yum install telnet -y
  3. //Test SMTP, E.g Gmail mail
  4. telnet smtp.gmail.com 465
  1. 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

  1. 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)