[我尝试了其他3种联系方式,但都没有成功,所以我下载了此模板https://startbootstrap.com/template-overviews/freelancer/,它是引导程序模板+联系方式,我只进行了一次编辑就将其上传到服务器上,更改了这一行:
$to = '[email protected]'; // Add your email address in between the '' replacing [email protected] - This is where the form will send a message to.
并且它不起作用。然后我在与contact_me.php相同的文件夹中找到此文件eror_log
[04-Jun-2017 22:17:29 UTC] PHP Warning: mail() has been disabled for security reasons in /home/myname/public_html/startbootstrap-freelancer-gh-pages/mail/contact_me.php on line 24
有人可以帮忙吗?
如果您检查php.ini,则可以看到disable_functions的设置。可以在此处进行设置,您可以对其进行编辑以启用它。