WordPress website inquiry can not receive email?Post SMTP Plug in Setup Tutorial
useWordPress website establishmentAfter that, the website could not receive email, especially the foreign trade website. If the website could not receive an inquiry email reminder, it would still need to go to the website backstage every time, or could not receive user messages, which would greatly affect the transformation of the website. This problem was caused by the abnormal work of the WordPress sending system.
Why can't WordPress receive email?It starts with the sending process of WordPress.
WordPress itself has no way to send mail. It requires the server to have an email system.
Like general virtual hosts, such asSiteGround、GreenGeeks、HostingerThis kind of virtual host has an email system installed on the server by default (you can understand it as a program), and WordPress's default email sending function is to call the system's own sending system.
If we use VPS to build a website, the website environment we install (for examplePagoda panel)The mail system is not installed by default.So at this time, we need to use external mailboxes to send mail, usually in the form of SMTP.
Can I install a mail system on my own server?
The answer is yes, but this is not recommended.
Because of spam, many server vendors have closed their email ports by default, so you need to apply for opening them separately;The most important thing is that the self built email system is unstable, and outgoing emails are easy to be intercepted.
The delivery accuracy rate of SMTP is higher than that of the mail system provided by the server.
resolvent
To solve the problem of WordPress sending emails normally, we only need to configure an SMTP sending plug-in“Recommended WordPress SMTP mail plug-ins I have used”Several items have been introduced in one article, and this article will give you a lookPost SMTP Plug in Setup Tutorial。
Post SMTP Plug in Setup Tutorial
First, we can install plug-ins by searching Post SMTP in the background of WordPress.
Many WordPress theme demos may come with the WPForms inquiry message plug-in. The supporting SMTP plug-in recommends WP Mail SMTP by WPForms. This plug-in requires a fee if you want to view the sending record, but Post SMTP can view the sending record for free. This is a very useful function, so we recommend that you give priority to Post SMTP.
Activate after installation, and then you can find the Post SMTP setting entry in the menu bar on the left.
Click the Start the Wizard button to start account setting.
Then enter the email account you need to use to send emails.
If you are a B2B website, it is recommended to use Gmail directly for higher stability.
If you are a B2C website, it will also involve the website sending emails to guests. It is better to send emails by using the corporate email, but you need to go to your corporate email first to enable the SMTP function.
We use Gmail mailbox to configure.
Fill in the SMTP server address.
Because we filled in the Gmail address, we automatically identified Google's SMTP address. If we use other mailboxes, we should make sure that the address is correct.
Select the mail sending method, and then click Next.
For Gmail, port 587 and OAuth 2.0 are recommended.
Go to Google to create authentication credentials.
Click the button below to go to the Google API Control Center to create credentials.
The first visit requires agreement to the terms of service.
Go to the Credentials page.
Select Gmail API, User Data, and then Next.
Fill in the application information.
Write your name and email address in your own gmail.
Configure OAuth information.
You need to fill in two URLs here. Copy the two URLs given by the Post SMTP plug-in.Then click Create.
Creation completed.
Click Modify OAuth 2.0 Client.
Copy the client ID and client key and fill them in the Post SMTP plug-in settings.
After filling in, the post SMTP will go directly to the next step.
Publish apps.
Then click Grant permission with Google authorization on the post SMTP plug-in page.
Just ignore the safety tips and continue.
Check Permissions before continuing.
At this point, the entire configuration is set. You can click send a test email on the Post SMTP interface to send an email for testing.
If the email can be received, send a test inquiry to see if it can be received.
If everything is normal, we have set up the WordPress SMTP to send an email. If we cannot receive an email, first check the email record of the post smtp plug-in to see whether it is sent. If it is sent successfully, it is estimated that it has entered the trash. If it fails to send, we will analyze what is wrong according to the log. After checking, we can reset and test it.
With more than 10 years of experience in WordPress use and website operation management, we now provide: 1. website hosting services;2. Solve the problem of paid WordPress;3. Genuine Astra theme and plug-in authorization service.If you have questions, you can ask me on WeChat for free, but the blogger is not Lei Feng, so please don't take others' help for granted, thank you for understanding!