While sent mail using gmail I will get mail, but am using something mail like info@something.com I will get any mail
This my coding:
<?php
$name = $_POST["name"];
$lname = $_POST["lname"];
$email= $_POST["email"];
$location =$_POST["location"];
$org =$_POST["org"];
$inquiry =$_POST["inquiry"];
$message =$_POST["message"];
$message = "Name :".$name."\n"."Last Name :".$lname."\n"."Email :".$email."\n"."Location :".$location."\n"."Organization :".$org."\n"."Inquiry :".$inquiry."\n"
."Questions/Comments :".$message;
$subject ="Visitor Enquiry";
$to = "dev@webbylogic.com";
$to = "info@subiconstruction.com";
if(mail($to, $subject,$message)){ ?>
<script>
alert("Thank You for Contacting Us,We'll Get Back To You Soon");
document.location="contact-us.php";
</script>
<?php
echo "We Received Your enquiry, We'll get back to you soon";
}
else{
echo "There were some errors sending enquiry, please try again";
}
?>
Aucun commentaire:
Enregistrer un commentaire