rendered paste body<?php
$msg = $_POST['uname'] . "\r\n";
$msg .= $_POST['firstname']. ' '.$_POST['lastname']."\r\n";
$from = trim($_POST['email']);
$msg .= $_POST['referedby'] . "\r\n";
$msg .= $_POST['comments'] . "\r\n";
$subject = "Worxtech Contact Request";
if(isset($_POST['radio'])){
switch ($_POST['radio']) {
case 1:
$email_address='poppabear@worxtech.com';
break;
case 2:
$email_address='pip2kk@gmail.com';
break;
case 3:
$email_address='support@aeonhosting.com';
break;
case 4:
$email_address='mike@worxtech.net';
break;
default:
echo "Please select a contact";
include('contact.html');
exit();
}
}
if(isset($msg) && isset($from))
{
$headers = 'MIME-Version: 1.0'."\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1'."\r\n";
$headers .= 'From: '.$from.' <'.$from.'>\nReply-To: '.$email_address.'\nX-Mailer: PHP/';
mail($email_address, $subject, $msg, $headers . phpversion());
###mail($email_address, $subject, $msg, "From: $from\nReply-To: $email_address\nX-Mailer: PHP/" . ###phpversion());
echo "Message Sent, Thank you for you feedback " . $uname;
} else {
echo "All fields must be filled in!<BR>";
}
?>