0

Can you plz explain were is my mistake in my code.plz help me i really want to make working contactform which send data to email

This html code <form action="mail_hendler.php" method="post"> <label form=name>name</label> <input type="text" name="name" class="inp"> <input type="submit" value="submit" name="submit" class="sub-btn"> This is php code <?php if(isset($_post['submit'])){ $name=$_post['name']; $to='yadavsatyam88@gmail.com'; $subject='formsubmission'; $message="Name:".$name; $headers="Form:".$email; if(mail($to,$subject,$message,$headers)){ echo "ture"; } else{ "false"; } } ?>

7th Jun 2019, 7:45 PM
Neha Ramashray Yadav
Neha Ramashray Yadav - avatar
3 Respuestas
+ 1
Satyam Yadav No errors are thrown up when I run the code. I'm not 100%, but I don't think it's your code exactly. I'm not sure whether you actually can do something like that, sending emails through Sololearn. I will try and find out for you. 😁
7th Jun 2019, 11:02 PM
River
River - avatar
+ 1
I know it not show any error but it not send email to my email account
8th Jun 2019, 9:13 AM
Neha Ramashray Yadav
Neha Ramashray Yadav - avatar