Mail gönderme problemim
10
●920
- 03-11-2008, 20:41:43iyide mail gönderme kısmını bir değişkene atarsın onu if ile sınaarsın
$gonder=mail($kime,$subject,$message,$headers);
if($gonder)
yada
mail($kime,$subject,$message,$headers) or die("Gönderemedi"); - 03-11-2008, 20:45:29
<?php $subject = "Is Basvurusu"; $message = " <html> <head> <title>Merhaba</title> <style> p {font-family:Verdana;font-size:11px;} </style> </head> <body> <p>Merhaba</p> <p> Html email deneme <b>bold</b> veya <i>italik</i></p> </body> </html>"; $headers .= "X-Sender: <tolgaytoklar_4500@hotmail.com>\n"; $headers .= "X-Mailer: PHP\n"; $headers .= "X-Priority: 3\n"; $headers .= "Return-Path: <tolgaytoklar_4500@hotmail.com>\n"; $headers .= "Content-Type: text/html; charset=iso-8859-9\n"; $kime='tolgaytoklar_4500@hotmail.com'; mail($kime,$subject,$message,$headers); if(mail) { echo "tamam"; } else { echo "olmadi"; } ?>e-mail adresine kendininkini yaz - 03-11-2008, 20:49:42AGaRoot adlı üyeden alıntı: mesajı görüntüle
benim dediğim kodumu denedin ? - 03-11-2008, 20:54:43bunu dene bende çalıştı denedim 5 kere gönderdim
<?php $subject = "Is Basvurusu"; $message = " <html> <head> <title>Merhaba</title> <style> p {font-family:Verdana;font-size:11px;} </style> </head> <body> <p>Merhaba</p> <p> Html email deneme <b>bold</b> veya <i>italik</i></p> </body> </html>"; $headers .= "X-Sender: <tolgaytoklar_4500@hotmail.com>\n"; $headers .= "X-Mailer: PHP\n"; $headers .= "X-Priority: 3\n"; $headers .= "Return-Path: <tolgaytoklar_4500@hotmail.com>\n"; $headers .= "Content-Type: text/html; charset=iso-8859-9\n"; $kime='tolgaytoklar_4500@hotmail.com'; $gonder= mail($kime,$subject,$message,$headers); if (!$gonder) { echo "Gönderilemedi"; } else { echo "Başarıyla Gönderilmiştir"; } ?>