PHP Mail Not Sending To Email

时间秒杀一切 提交于 2019-12-13 04:39:13

问题


This is my php code to send an email however it is not sending anything to my email

PHP

<?php
    mail("nishil.shah17@gmail.com","PHP Mail Works!","Awesome","Hello");
?>

回答1:


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



来源:https://stackoverflow.com/questions/17737566/php-mail-not-sending-to-email

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!