سورس كود لسكريبت php لارسال الميلات

 نضع بين أيديكم كمتعلمين للبرمجة و كمبرمجين سورس كود سكريبت php لارسال الميلات























السورس كود

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>MIL3R BY VIH-10</title>
</head>
<body>
<center><font size="4">C0D3D BY VIH-10<br>
FOR<br><br>
<a href="http://www.b-a-programmer.blogspot.com/">BE A PROGRAMMER</a><br>
& <br>
<a href="http://www.sa3eka.com/">SA3EKA NETWORK</a><br>
</font>
<br><br>
</center>
<form action="email.php" method="post">
<table border="0" align="center">
<tr>
<td>Email from:<br><input type="text" name="from"><br>
Name:<br><input type="text" name="name"></td>
<td></td>
<td>
Email to:<br><input type="text" name="to"><br>
Subject:<br><input type="text" name="sub">
</td>
</tr>
<tr>
<td colspan ="3">
Message:<br>
<textarea name="msg" cols="38" rows="15"></textarea>
</td>
</tr>
<td colspan ="3" align="center">
<input type="submit" value="Send">
</td>
</tr>
</table>
</form>
</body>
</html>
<hr>
<?php
if(isset($_POST['from']) && isset($_POST['name']) && isset($_POST['to']) && isset($_POST['sub']) && isset($_POST['msg'])){
if(!empty($_POST['from']) && !empty($_POST['name']) && !empty($_POST['to']) && !empty($_POST['sub']) && !empty($_POST['msg'])){
$from = $_POST['from'];
$name = $_POST['name'];
$to = $_POST['to'];
$sub = $_POST['sub'];
$msg = $_POST['msg'];
$header = 'From: '.$name.' <'.$from.'>';
if (mail($to, $sub, $msg, $header)){
echo 'Email successfuly sent to '.$to;
}else{ echo 'Error sending Email to '.$to;}
}else{
echo 'Please complete all fields';
}
}
?>

Twitter Delicious Facebook Digg Stumbleupon Favorites More