<?php
$contact_name = $_POST['name'];
$contact_email = $_POST['email'];
$contact_subject = $_POST['subject'];
$contact_subjecta = $_POST['subjecta'];
$contact_subjectb = $_POST['subjectb'];
$contact_subjectc = $_POST['subjectc'];
$contact_message = $_POST['message'];
{
$sender = $contact_email;
$receiver = "[email protected]";
$client_ip = $_SERVER['REMOTE_ADDR'];
$email_body = "EMAIL: $sender \nTELEFONO: $contact_subjectb \nNOMBRE: $contact_subjecta \nEMPRESA: $contact_message \nIP: $client_ip \ ";
$extra = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion();
if( mail( $receiver, "Flash Contact Form - $subject", $email_body, $extra ) )
{
echo "success=yes";
}
else
{
echo "success=no";
}
}
?>