<?php
//$toEmail = "hello@rareads.net,venkatsaideshpande@gmail.com";
$toEmail = "hello@rareads.net";
$subject = "RareAds - Contact";  
$message = "First Name:".$_POST["userName"]."<br> Last Name:".$_POST["userLastName"]."<br> Email:".$_POST["userEmail"]."<br> Skpe:".$_POST["userSkype"]."<br> Message:".$_POST["userMessage"]."<br>"; 
//$mailHeaders = "From: " . $_POST["userName"] . "<". $_POST["userEmail"] .">\r\n";

// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";

// More headers
$headers .= 'From: <admin@rareads.net>' . "\r\n";
//$headers .= 'Cc: venkatsaideshpande@gmail.com' . "\r\n";

if(mail($toEmail, $subject, $message, $headers)) {
print "<p class='success'>Thanks for contacting us! We will be in touch with you shortly.</p>";
} else {
print "<p class='Error'>Problem in Sending Mail.</p>";
}
?>