error_reporting(0);
$errormsg='';
$successmsg='';
//print_r($_POST);
if(isset($_POST['submit']))
{
if($_POST['security_code']==$_POST['sum_security'])
{
unset($_SESSION['val1']);
unset($_SESSION['val2']);
$first_name=$_POST['first_name'];
$last_name=$_POST['last_name'];
$name=trim($first_name." ".$last_name);
$email_address=$_POST['email_address'];
$phone=$_POST['phone'];
$company=$_POST['company'];
$website_address=$_POST['website_address'];
$looking_to_built=$_POST['looking_to_built'];
$budget=$_POST['budget'];
$description=$_POST['description'];
$ef_subject="Contact Us details from seoservices.co.in";
$ef_message='
| Contact Us Details : |
';
if($name)
{
$ef_message.='
| Name |
: |
'.$name.' |
';
}
if($email_address)
{
$ef_message.='
| Email |
: |
'.$email_address.' |
';
}
if($phone)
{
$ef_message.='
| Phone |
: |
'.$phone.' |
';
}
if($company)
{
$ef_message.='
| Company |
: |
'.$company.' |
';
}
if($website_address)
{
$ef_message.='
| Website Address |
: |
'.$website_address.' |
';
}
if($looking_to_built)
{
$ef_message.='
| I am looking to build a |
: |
'.$looking_to_built.' |
';
}
if($budget)
{
$ef_message.='
| Budget |
: |
'.$budget.' |
';
}
if($description)
{
$ef_message.='
| Description |
: |
'.$description.' |
';
}
$ef_message.='
| |
| P.S: This is a system generated mail. Please do not reply to it. |
';
//$SecName = get_one_value("gs_configuration", "cf_value","cf_name", "ADMIN");
$subject=$ef_subject;
$msg=$ef_message;
//$to_email = $username;
//$from_name=$this->get_one_value("gs_configuration","cf_value","cf_name","FROM_NAME");
//$from_email=$this->get_one_value("gs_configuration","cf_value","cf_name","FROM_EMAIL");
/*echo "
subject - ".$subject ."
";
echo "
message - ".$msg ."
";
echo "
To - ".$to_email ."
";
echo "
From - ".$from_email ."
";
exit;*/
$headers .= 'From: SEOSERVICES ' . "\r\n";
$headers .= "X-Mailer: PHP v".phpversion()." \r\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'Content-Transfer-Encoding: base64' . "\r\n";
$mailText=preg_replace('/\s\s+/', ' ', $msg);
$mailText = rtrim(chunk_split(base64_encode($mailText)));
// send mail to user
if($email_address)
{
if( @mail( $email_address, $ef_subject, $mailText, $headers ))
{
$mailCounter=1;
}
else
{
$mailCounter=0;
}
}
// send mail to admin
$adminemail="info@intactinfomedia.com";
if($adminemail)
{
if( @mail( $adminemail, $ef_subject, $mailText, $headers ))
{
$mailCounter=1;
}
else
{
$mailCounter=0;
}
}
// send mail to admin2
$adminemail2="info@seoservices.co.in";
if($adminemail)
{
if( @mail( $email_address, $ef_subject, $mailText, $headers ))
{
$mailCounter=1;
}
else
{
$mailCounter=0;
}
}
$successmsg="Thanks for Your Query ";
}
else
{
$errormsg="Invalid Form Content";
}
}
unset($_SESSION['val1']);
unset($_SESSION['val2']);
$rand1=rand(1,9);
$rand2=rand(1,9);
?>
Contact for Seo Services Company Delhi
include("component/header.php");?>
Contact Us
include("component/footer.php");?>