description |
---|
The email notification is required for the e-commerce website or App. In this section, we will tell you how to configure Send Mail feature on your server. |
This method depends on PHP mail() function, so you should make sure mail() function is enabled on your server. Generally speaking, this function is enabled by default on the most shared hosting, but if you use VPS, you may have to configure that by yourself. Please refer to guide: https://blog.ashwinshenoy.com/php-send-mail-very-slow-9b0a4ace6672
PHP mail() method is not very reliable. We strongly recommended use the third-party Email service. For example, MailGun is one of the best choices, 10,000 emails free every month.
Just signup via https://signup.mailgun.com/new/signup the credit card information is required, but you only need to pay out if more than 10,000 emails is sent in a month.
Activate your account and login. Go to Domains page, and click "Add New Domain" button.
Add a subdomain such as m.domain.com
Then, follow the steps on this page to verify domain, you need to add some TXT, CNAME and MX record via your domain control panel.
Once you make the above DNS changes it can take 24-48hrs for those changes to propagate. MailGun will email you to let you know once your domain is verified.
After that, back to the Domain page, you will see your domain status is active.
Click your domain link to go to the setting page, you will get your SMTP certificate as below. Do not close this page.
Login your WordPress backend, go to Plugins > Add New page, search "Post SMTP" plugin and install > activate this plugin.
Then, go to Post SMTP page, start the wizard.
Enter the email address and name which you'd like to show as.
Next, set the outgoing mail server hostname to smtp.mailgun.org
Next, select "SMTP - mailgun.org:465"
Next, enter your SMTP username and password which you get from MailGun.
Finished! Go back to Post SMTP page, click "Send a test email" link.
Just add a valid email address and and start to test.
Check this email inbox if it can receive the test mail.
That's it!