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.