PHP Mail Not Sending To Email

2019-09-05 07:23发布

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");
?>

标签: php email send
1条回答
放荡不羁爱自由
2楼-- · 2019-09-05 08:22

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

查看更多
登录 后发表回答