Question Detail

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

Anonymous

- 11 months 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.

Anonymous

- 11 months ago

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