[英]PHP Mail Not Sending To Email
This is my php code to send an email however it is not sending anything to my email 这是我的PHP代码,用于发送电子邮件,但是没有向我的电子邮件发送任何内容
PHP 的PHP
<?php
mail("nishil.shah17@gmail.com","PHP Mail Works!","Awesome","Hello");
?>
The syntax is wrong You forgot to put @
correct syntax is 语法错误您忘记输入
@
正确的语法是
<?php
@mail("nishil.shah17@gmail.com","PHP Mail Works!","Awesome","Hello");
?>
and one more thing if you are using it on localhost than possible it won't work so you have to check it on remote server 还有一件事,如果您在localhost上使用它,它将无法正常工作,因此您必须在远程服务器上进行检查
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.