// Sender Information
$fromname = $_POST['Name'] . ' ' . $_POST['Surname'];
$fromaddress = $_POST['Email'];
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
// Please do not replace //
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
// Message
$name = ($_POST['Name']);
$message = ($_POST['Message']);
// Content
$mailcontent = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
."<html dir=\"ltr\" lang=\"tr\">\n"
."<head>\n"
."<title>".$subject."</title>\n"
."<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\" />\n"
."<META HTTP-EQUIV=\"Expires\" CONTENT=\"-1\" />\n"
."<META HTTP-EQUIV=\"Cache-Control\" CONTENT=\"no-cache\" />\n"
."<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\" />\n"
."<style type=\"text/css\" media=\"all\">\n"
."body\n"
."{\n"
." color: #333333;\n"
." font-size: 50px;\n"
." font-family: Century Gothic, Trebuchet MS, Tahoma, verdana, arial, Helvetica, sans-serif;\n"
." margin: 2ex;\n"
." text-align: left;\n"
." background-color: #FFFFFF;\n"
."}\n"
."\n"
."</style>\n"
."</head>\n"
."<body>\n"
."\n"
."".$name."\n"
."".$message."\n"
."\n"
."</BODY>\n"
."</HTML>\n";
// E-mail Headers
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=utf-8\n";
$headers .= "X-Priority: 3\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Mailer: Eggdrop Inc.\n";
$headers .= "From: \"".$fromname."\" <".$fromaddress.">\n";
// Send it.
@mail($toaddress, $subject, $mailcontent, $headers);
?>