Editando: mail.php
<?php error_reporting(E_ALL ^ E_NOTICE); // hide all basic notices from PHP $name = $_POST['name']; $email = $_POST['email']; $email = $_POST['email']; $mobile = trim($_POST['phone']); // we need at least some content $comments = $_POST['message']; // upon no failure errors let's email now! $emailTo = 'laxmiinternationalacademy@yahoo.com'; $subject = 'Submitted message from '.$name; $body = "Name:". $name." \n\nEmail: ".$email." \n\nMobile:". $mobile." \n\nComments:". $comments; $headers = 'From: <info@liashahpura.org>' . "\r\n" . 'Reply-To: info@liashahpura.org' ; if(mail($emailTo, $subject, $body, $headers)) { header('location:thanks.php'); } else { header('location:contact.php'); } // set our boolean completion value to TRUE $emailSent = true; ?>
Cancelar
Kerym Chaeceran