PHP Mailing
Hi guys im stranded with my codes. i created a contact form and want to link it to my email. Source code: <?php if(isset($_POST['submit'])){ $name=$_POST['nme']; $email=$_POST['email']; $contact=$_POST['contact']; $msg=$_POST['msg']; $to='chrisvix.media@gmail.com'; $subject='Form Submission'; $message="Name :".$name."\n"."Contact:".$contact."\n"."Wrote the following :"."\n\n".$msg; $headers="From: ".$email; if(mail($to, $subject, $message, $headers)){ echo "<h1>Sent Successfully! Thank you"." ".$name.", We will contact you shortly!</h1>"; } else{ echo "Something went wrong!"; } } ?> after i wrote my php code for that function . When i run it it shows me a blank page. it doesnt display any error message or success message. And it doesnt send anything to my email eigther. Please help me out. Your contributions would be greatly appreciated.