Unity
Intern
Intern
  • UID4463
  • Fans0
  • Follows0
  • Posts3
Reads:167Replies:4

How to enable mail() in PHP

Created#
More Posted time:Nov 24, 2017 18:18 PM
Hi I set up WordPress on my Web Hosting server and I am seeing the error message whenever the form tries to send an email:


"Call to undefined function mail()"


How do I enable PHP mail() function? I checked phpinfo() and it looks like mail has been disabled.


Thanks

shhanshan
Forum Moderator
Forum Moderator
  • UID105
  • Fans3
  • Follows0
  • Posts289
1st Reply#
Posted time:Nov 25, 2017 19:37 PM
Hi Unity,
mail() function is not supported in web hosting.
Regards

Unity
Intern
Intern
  • UID4463
  • Fans0
  • Follows0
  • Posts3
2nd Reply#
Posted time:Nov 28, 2017 2:03 AM
Thanks. How do we send e-mails from the Wordpress form then?

Unity
Intern
Intern
  • UID4463
  • Fans0
  • Follows0
  • Posts3
3rd Reply#
Posted time:Dec 1, 2017 7:13 AM
Wordpress uses mail() in the wp_mail() function to send emails telling us about submissions to our form

Guest