php "gönder butonu" problemi...

Kodla Büyü

yigitkocak

Üye
Mesajlar
20
- form.html içeriği -

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<title>Deneme</title>
<style>
<!--
.baslik {
font-size: 14px;
font-family: tahoma;
font-weight: bold;
color: #3333FF;
}
.baslik {
font-size: 14px;
font-family: tahoma;
font-weight: bold;
color: #FFFFFF;
}

.baslik {
color: #FF0000;
font-family: Tahoma;
font-size: 14px;
font-weight: bold;
padding: 5px;
border-bottom-width: 2px;
border-bottom-style: solid;
border-bottom-color: #FF9900;
}
.yazi {
font-size: 12px;
font-family: tahoma;
}
.MK_textbox_kucuk {
border: 1px solid #CCCCCC;
width: 170px;
font-size: 11px;
font-family: tahoma;
}
.style1 {
color: #FF0000;
font-weight: bold;
}
.MK_button {
border: 2px solid #CCCCCC;
font-size: 11px;
font-family: tahoma;
background-color: #FFCC00;
font-weight: bold;
}
-->
</style>
</head>

<body>
<form method="POST" action="gonder.php">
<table width="20%" border="0">
<tr>
<td colspan="2" class="baslik">İletişim ::</td>
</tr>
<tr>
<td height="10" colspan="2" ></td>
</tr>

<tr>
<td valign="top" nowrap="nowrap"><div align="right" class="yazi">İsim :</div></td>
<td nowrap="nowrap"><label>
<input name="kutu1" type="text" class="MK_textbox_kucuk" id="kutu1" value="" size="40" />
<span class="style1">*</span></label></td>
</tr>

<tr>
<td valign="top" nowrap="nowrap"><div align="right" class="yazi">Meslek :</div></td>
<td nowrap="nowrap"><label>
<input name="kutu2" type="text" class="MK_textbox_kucuk" id="kutu2" value="" />
<span class="style1">*</span></label></td>
</tr>

<tr>
<td valign="top" nowrap="nowrap"><div align="right" class="yazi">e-posta :</div></td>
<td nowrap="nowrap"><label>
<input name="kutu3" type="text" class="MK_textbox_kucuk" id="kutu3" value="" size="37" />
<span class="style1">*</span></label></td>
</tr>

<tr>
<td valign="top" nowrap="nowrap"><div align="right" class="yazi">Mesajınız :</div></td>
<td nowrap="nowrap"><label>
<textarea name="kutu4" rows="9" class="MK_textbox_kucuk" id="kutu4" cols="37"></textarea>
</label></td>
</tr>

<tr>
<td>&nbsp;</td>
<td>
<input type="submit" class="MK_button" id="button" value="Gönder &gt;" /> </td>
</tr>
</table>

</body>

</html>



- gonder.php içeriği -


<?php
$isim = $_POST["kutu1"];
$meslek = $_POST["kutu2"];
$eposta = $_POST["kutu3"];
$mesaj = $_POST["kutu4"];

$ip = getenv("REMOTE_ADDR");
$zaman = date("d-m-Y H:i");

$kime = "yildirim_kemal_08@hotmail.com";


$baslik = "MIME-Version: 1.0" . "\r\n";
$baslik .= "Content-type: text/html; charset=ISO-8859-9" . "\r\n";

$mesaj = "
".
"İp: $ip Tarih: $zaman
".
"İsim: $isim
".
"Meslek: $meslek
".
"Email: $email
".
"Mesaj: $mesaj"
;

if( mail($kime, $mesaj, $baslik) ) {
echo "Mesajınız başarıyla gönderildi. Teşekkür Ederiz";
} else {
echo "Bir hata oluştuğu için mesajınız gönderilemedi !";
}
?>

gönder butonuna bastığımda mail bir türlü hesaba gitmiyor... yardımcı olurmusunuz arkadaşlar... (problem şu " if( mail($kime, $mesaj, $baslik) ) {
" satırda galiba ama neyse...)
 
Kod:
if( mail($kime, $mesaj, $baslik) ) {
satırını
Kod:
if( mail($kime, $baslik, $mesaj) ) {
ile bi değiştirsene hocam
 
evet çalışıyor ama mail yerine ulaşmıyor. isterseniz kendi e-postanı ile deneyin hocam, bu arada ilginiz için teşekkür ederim. :)
 
Kod:
<?
$alici_eposta = "info@rtyucel.com";
$eposta_konusu = "Tebrik";
$eposta_mesaji = "Bayramınızı en içten dileklerimle kutlarım";
if (mail($alici_eposta, $eposta_konusu, $eposta_mesaji))
	echo "mail gönderildi"; 
else
	echo "mail gönderilmedi"; 
        ?>

bu kod çalışıyor,
mailin gönderilmesi biraz zaman alabiliyor. hata vermediğine göre sistemden kaynaklanan bir gecikme olabilir
 
hotmail bazı e-postaları spam olarak kabul edip, engelleyebiliyor. Başka e-posta adresleriniz varsa (gmail, yahoo vs.) onlarda denerseniz iyi olur.
 
bazı email servisleri emaili spam olarak kabul etse de gitmesi lazım. en azından önemsiz kutusuna düşer.
mail fonksiyonunun alabileceği argümanlara bakarsan spamden kurtarabilirsin...
 
BBNET
Geri
Üst