There are some solutions to fix the “The email could not be sent. possible reason: your host may have disabled the mail() function.” error in wordpress. Let’s solve it step by step.
Install and activate the “WP Mail SMTP by WPForms” plugin. You can download it from the WordPress repository; click here to download the plugin.
After that, you need to set up the plugin to work correctly.
Finally, save the setting and test it out by entering another one of your emails and seeing if it is received. If so, then get out and try again.
The “The email could not be sent. possible reason: your host may have disabled the mail() function.” problem should be solved now. If not then try the next solution.
You have to set up email management on the Cpanel host.
Login your Cpanel like https://expertoftech/cpanel
Then, Go to “Email Section” > after that, Click on “Registered Email IDs.”
then add some things before “@” like (wordpress@expertoftech.com)
Or where your wordpress is hosted like for subdomain (wordpress@blog.expertoftech.com). Then submit; it should take 15 min – 60 min to update your host. After that, you can check the “The email could not be sent. possible reason: your host may have disabled the mail() function.” issue. Now you can close Cpanel and enjoy it.
To check the status of the PHP Mail() function write the below code in any PHP file of the root directory.
<?php
phpinfo();
?>
Then search PHP Mail() function status and if say it disable. so we definitely enable it to work mail function.
Finally, contact your hosting provider and say to enable the PHP Mail() function. After enabling check your website. It should work well now. That’s it.
Unblock Firewall to work it properly. if you can’t do it ask to host or hire an expert.
In conclusion, That’s all about “The email could not be sent. possible reason: your host may have disabled the mail() function.” error in WordPress.”. But, if you face any difficulties, feel free to contact one of our experts or email me. I will respond ASAP. To learn more about WordPress speed optimization, click here.