Question Detail

mail() has been disabled for security reasons

4 years ago Views 1936 Visit Post Reply

I am using Mail() function to send Email from my website it is response me Error :

A PHP Error was encountered

Severity: Warning

Message: mail() has been disabled for security reasons

Filename: controllers/MyMail_Controller.php

Line Number: 12

How to Send mail with mail() function of PHP

Thread Reply


- 4 years ago

Hello :)

The message suggests your hosting provider has disabled the PHP "mail" function. You can contact your hosting provider to see if they can enable it, or consider using SMTP authentication in your mail script.


- 4 years ago

You can use PHPMailerClass. With that PHPMailer You will be able to send mails with that function disabled?