How to Fix mail() Function Error in WordPress

If you are working with Windows server. You will view the following error message if you attempt to use the Forget Password functionality in WordPress

The e-mail could not be sent. Possible reason: your host may have disabled the mail() function…

The above error appears since you will not be able to use mail() function under Windows.

In order to solve the problem you have to make use of WP Mail SMTP plugin.

(1) Login to the WordPress admin dashboard and select Plugins. You will view Plugins page.

(2) Select Add New option located under Plugins navigation panel and search using the keyword – WP Mail SMTP

Figure_1

(4) Click Install Now link and confirm the installation

(5) You will view the following screen upon successful installation of WP Mail SMTP plugin

Figure_2

(6) Select Activate Plugin link. You will view ‘Plugin activated’ message

Figure_3

(7) Select Settings link located under WP-Mail-SMTP plugin. You will view the following screen

figure_4

(8) In order to work with the plugin you have to create a POP3 email account using your hosted domain and follow the steps given below.

(a) Select Send all WordPress emails via SMTP option

(b) Provide SMTP Host name (mail.yourdomain)

(c) Select Yes: Use SMTP authentication under Authentication and provide username and password of your mailbox account.

(d) You can test the mail functionality by selecting Send Test button after providing an email address. You will view a long log which confirms the mail delivery.

You will receive an email with the subject WP Mail SMTP: Test mail to if everything goes on well. The body of the message will have the following content

This is a test email generated by the WP Mail SMTP WordPress plugin.

Here-afterwards, you should be able to use mail capabilities provided by WordPress.

Looking for quality WordPress Web Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , | Posted under DotNet/Windows Hosting, WordPress | RSS 2.0

Author Spotlight

Anand Narayanaswamy

Anand Narayanaswamy

Anand works as a freelance writer based in Trivandrum, India. Anand runs NetAns, which provides hosting for developers and small scale businesses. He also provides blog installation services.

Leave a Reply

Your email address will not be published. Required fields are marked *


8 × 8 =

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>