this is the following code i've entered.
<?php
if(isset($_POST['fullname']) || isset($_POST['companyname']) || isset($_POST['emailid']) || isset($_POST['country']) || isset($_POST['city']) ||isset($_POST['contactno']) || isset($_POST['enquiry']))
{
$fullname=$_POST['fullname'];
$message=$_POST['enquiry'];
$from =$_POST['emailid'];
$country="Message Sent From: ".$_POST['country'];
$headers = "From: ".$from. "(".$fullname.")\r\n" .
"CC: <--Here come my email--->";
mail("<--Here come my email--->",$country,$message,$headers);
}
?>
This code works and sends the mail but except the From email id nothing else is being recieved
<?php
if(isset($_POST['fullname']) || isset($_POST['companyname']) || isset($_POST['emailid']) || isset($_POST['country']) || isset($_POST['city']) ||isset($_POST['contactno']) || isset($_POST['enquiry']))
{
$fullname=$_POST['fullname'];
$message=$_POST['enquiry'];
$from =$_POST['emailid'];
$country="Message Sent From: ".$_POST['country'];
$headers = "From: ".$from. "(".$fullname.")\r\n" .
"CC: <--Here come my email--->";
mail("<--Here come my email--->",$country,$message,$headers);
}
?>
This code works and sends the mail but except the From email id nothing else is being recieved