PHP Kod:
<?php
if($_POST){
$gonder_isim=$_POST['isim'];
$gonder_mail=$_POST['eposta'];
$tel=$_POST['tel'];
$adres=$_POST['adres'];
$konu=$_POST['konu'];
$mesaj=$_POST['mesaj'];
$kime="[email protected]";
$mailtanim="MIME-Version:1.0\r\n";
$mailtanim.="Content-type:text/palain; charset=iso-8859-9\r\n";
$mailtanim.="From:$gonder_isim<$gonder_mail>\r\n";
mail($kime,$konu,$mesaj,$mailtanim);
echo "Mesajınız Başarılı Şekilde Gönderidi";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>İletişim formu</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<table width="500" border="1">
<tr>
<td>İsim Soyisim</td>
<td><label>
<input type="text" name="isim" id="isim" />
</label></td>
</tr>
<tr>
<td>E-posta</td>
<td><label>
<input type="text" name="eposta" id="eposta" />
</label></td>
</tr>
<tr>
<td>Telefon</td>
<td><label>
<input type="text" name="tel" id="tel" />
</label></td>
</tr>
<tr>
<td>Adres</td>
<td><label>
<textarea name="adres" id="adres" cols="45" rows="5"></textarea>
</label></td>
</tr>
<tr>
<td>Konu</td>
<td><label>
<input type="text" name="konu" id="konu" />
</label></td>
</tr>
<tr>
<td>Mesaj</td>
<td><label>
<textarea name="mesaj" id="mesaj" cols="45" rows="5"></textarea>
</label></td>
</tr>
<tr>
<td> </td>
<td><label>
<input type="submit" name="button" id="button" value="Gönder" />
</label></td>
</tr>
</table>
</form>
</body>
</html>