简体   繁体   中英

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
    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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM