\nTo: ".$emails[$to]." <".$emails[$to].">\n";
$mailheaders .= "Content-type: text/plain\n\n";
$msg = "From: ".$name."\nEmail: ".$email."\nPhone: ".$phone."\n\n".$msg;
if (mail($emails[$to], $subj, $msg, $mailheaders)) {
echo "
Your message has been successfully send";
}
else {
echo "
Unknown error. Please try again .";
}
}
?>