<?
//Created By MD55 Bütün Haklarý Saklýdýr...
// Bunlarý Kendinize Göre Ayarlýyacaksýnýz...
$address = 'mbcortoglu@yandex.com'; // Gönderilmesini Ýstediðin Mail Adresi...
$subj = 'FormMailden Mail Geldi'; // Mesajýn Baþlýðý...
//$returnto = 'http://www.cort.cf'; // Mail Gönderildikten Sonraki Gözüken Sitenin Adresi...
//Lütfen Geri Kalan Kodda Deðiþiklik Yapmayýnýz Çalýþmayabilir...
$address = ($_POST['sendto'])?$_POST['sendto']:$address;
$subj = ($_POST['subject'])?$_POST['subject']:$subj;
$returnto = ($_POST['returnto'])?$_POST['returnto']:$returnto;
if (eregi('^.+@.+\.[a-z]{2,6}',$_POST['email'])) {
$email = $_POST['email'];
$message = "";
}
else {
$email = $address;
$message = "";
}
foreach ($_POST as $key => $val) {
if ($key != 'returnto' && $key != 'email' && $key != 'subject' && $key != 'sendto') {
$message .= ''.$val."\n";
}
}
$message = stripslashes($message);
if (@mail($address, $subj, $message,"From: ".$email)) {
if ($returnto) {
header('Location: '.$returnto);
}
else {
?><html><body><center><font color="green"><b>Mail Gönderildi!</b></font><p><a href="JavaScript:history.back()">Geri Dön</a></center></body></html><?
}
}
else {
?><html><body><center><font color="red"><b>MAili Göndermekte Bir Sorun Yaþanýyor</b></font><p><a href="JavaScript:history.back()">Geri Dön</a></center></body></html><?
}
?>
Output for 8.0.13
Warning: Undefined array key "sendto" in /in/5GG4D on line 11
Warning: Undefined array key "subject" in /in/5GG4D on line 12
Warning: Undefined array key "returnto" in /in/5GG4D on line 13
Warning: Undefined variable $returnto in /in/5GG4D on line 13
Fatal error: Uncaught Error: Call to undefined function eregi() in /in/5GG4D:15
Stack trace:
#0 {main}
thrown in /in/5GG4D on line 15
Process exited with code 255.
Notice: Undefined index: sendto in /in/5GG4D on line 11
Notice: Undefined index: subject in /in/5GG4D on line 12
Notice: Undefined index: returnto in /in/5GG4D on line 13
Notice: Undefined variable: returnto in /in/5GG4D on line 13
Fatal error: Uncaught Error: Call to undefined function eregi() in /in/5GG4D:15
Stack trace:
#0 {main}
thrown in /in/5GG4D on line 15
Process exited with code 255.
Output for 7.3.32 - 7.3.33
Fatal error: Uncaught Error: Call to undefined function eregi() in /in/5GG4D:15
Stack trace:
#0 {main}
thrown in /in/5GG4D on line 15
Process exited with code 255.
Notice: Undefined index: sendto in /in/5GG4D on line 11
Notice: Undefined index: subject in /in/5GG4D on line 12
Notice: Undefined index: returnto in /in/5GG4D on line 13
Notice: Undefined variable: returnto in /in/5GG4D on line 13
Notice: Undefined index: email in /in/5GG4D on line 15
Deprecated: Function eregi() is deprecated in /in/5GG4D on line 15
<html><body><center><font color="red"><b>MAili Göndermekte Bir Sorun Yaþanýyor</b></font><p><a href="JavaScript:history.back()">Geri Dön</a></center></body></html>