PHP Warning: mail() has been disabled

Originally Posted by
bcomputr
Hey, I have a PHP script on my hosting for my contact page. All it does is send the mail to an email address. I set up a testing version of my site under a subdomain where i test ot my updates but when i send a test email i get an error log with :
[15-Jun-2012 21:04:34 UTC] PHP Warning: mail() has been disabled for security reasons in /home/kraziene/public_html/beta/emailer.php on line 17
Any ideas on how to fix this
Thanks

We had disabled the PHP mail() function on our shared and reseller hosting servers some time back and we have already notified all of our clients regarding the same.
During the server audits, we've found that many spam emails were being sent from the servers using different spamming scripts with the help of PHP mail() function and hence we decided to disable the PHP mail() function..
Alternative to PHP mail() function is to enable SMTP authentication in your PHP mailer scripts or you can either use PEAR mail or SwiftMailer library, if you want to send emails from your PHP scripts.
Reeve
[URL="http://www.webhosting.uk.com"]Webhosting.uk.com[/URL]
Bookmarks