I write a PHP code to mail the form information. But I am not getting any mail through this code. It’s not working on '000webhost'(Free) please help me to do that.
Here is my code:
<?php
//Variable Declaretion
$name = $_REQUEST['Full_Name'];
$section = $_REQUEST['Section'];
$email = $_REQUEST['Email'];
$opinion = $_REQUEST['Opinion'];
//Chech
if(empty($name)||empty($section)||empty($email))
{
echo"Please, Fill all the Fields";
}
else
{
mail("akibrahman5200@gmail.com","From_Students",$opinion,"From:$name");
echo"<script type='text/javascript'>alert('Thanks for your Opinion');
window.history.go(-1);
</script>";
}
?>
source https://stackoverflow.com/questions/68154236/my-php-code-is-not-working
Comments
Post a Comment