How to Fix mail() Function Error in WordPress?

0
270
When users are dealing with the Windows server, they shall face the issue of sending errors when they are trying to employ the functionality of Forget Password in WordPress. The reason causing this issue is the mail() function has been disabled intentionally by the host.
The error showed that users could not use the mail() function in WordPress. In order to fix mail() function error in WordPress, it is recommended to try the WP Mail SMTP plugin. Instead of mail(), the plugin used SMTP to reconfigure the wp_mail() function, creating the options page. The page allows users to identify the various options. This article describes the steps on how to correct the mail() Function Error in WordPress by SMTP Plugin.

Use SMTP Plugin to Fix mail() Function Error in WordPress?

Step 1

User shall login the WordPress admin. Under the dashboard, please select Plugins. User shall find the Plugins page at the end.

Step 2

At the Plugins navigation panel, user shall select the Add New option. User shall enter the keyword, WP Mail SMTP for searching. Please find the screen shot in the following image for the completed action.
use smtp plugin to fix mail() function error step2

Step 3

After search, user shall find the WP Mail SMTP on the left column. Please click on the link of Install. Now, installing the WP Mail SMTP plugin. If you have no idea on how to do it, follow the steps in the article of How to Install a WordPress Plugin.

Step 4

After installing the WP Mail SMTP plugin, you shall have the screenshot showing that the installation is completed. Please ensure installation is completed before the next step.

Step 5

When user installed the WP Mail SMTP plugin successfully, user needs to activate the plugin. Please select the link of Activate Plugin, and user shall find the message of “Plugin activated” after successful activation.
use smtp plugin to fix mail() function error step5

Step 6

After successful activation of the WP Mail SMTP plugin, user shall complete the settings of WP-Mail-SMTP plugin in order for successful operation. Under the WP-Mail-SMTP plugin, please click the link of the Settings. User shall find the print screen like the following screenshot.
use smtp plugin to fix mail() function error step 6

Step 7

Before users can operate with the plugin to solve the mail() Function Error in WordPress, they need to create one email account in POP3. During the setup of plugin, users shall be prepared to enter the hosted domain information, such as SMTP Hostname, username, password, etc.

Step 8

Since the operation of the WP Mail SMTP plugin is based on the SMTP, user shall select the Send all WordPress emails via SMTP under the column of Mailer. Then, enter the SMTP Hostname for the plugin, such as the mail.yourdomain.

Step 10

In step 10, you shall enter the authentication details. It is recommended to select SMTP authentication. If SMTP authentication is selected, username and password for the account of the mailbox need to be provided.

Step 11

After entered the authentication details, the setting is considered to be completed. However, it is recommended to send a test email in order to ensure the setting of the SMTP plugin is correct.
Under the column of Send a Test Email, user shall enter the email address that will receive the test email. When user clicked on the button of Send Test, a test email should be sent. User shall receive the email (Subject: WP Mail SMTP), which is an email used to test the functionality of the WP Mail SMTP plugin. Receiving the email means that the function error in WordPress has been solved.
The above steps help user to Fix mail() Function Error in WordPress, which are simple and easy to setup.