You might receive the error while sending mail from your website.Due to security reason PHP mail function has disabled on linux shared server.
Error:
Warning: mail() has been disabled for security reasons in /home/demo/public_html/sendMail.php on
line 139
Solution:
Create php.ini file under public_html folder and add the below line.
disable_functions = show_source, system, shell_exec, passthru, popen, proc_open, symlinked, symlink, escapeshellarg, escapeshellcmd, exec
Add the below line in your .htaccess file.
suPHP_ConfigPath /home/demo/public_html
NOTE: Replace demo with your username
No comments :
Post a Comment