$nasaadresa = „takacs.istvan85@chello.hu”; //please replace this with your address
$mail = $_POST[‘Email’];
$porukaa = $_POST[‘Message’];
$poruka = str_replace(„r”, ‘
‘, $porukaa);
//START OF THANKS MESSAGE
//you may edit $thanks message. this is a message which displays when user sends mail from your site
$thanks = ”Az Ön alábbi üzenete sikeresen elküldve!
#### ÜZENET SZÖVEGE ####$poruka
#### ÜZENET VÉGE ####
Köszönjük érdeklődését!Rendszerünk ezt a címet rögzítette: ($mail).
Üzenetére munkatársunk hamarosan válaszolni fog
„;
//do not edit nothing below this line until comment (ME) say so if you don’t have skills with PHP
//END OF THANKS MESSAGEif($_POST[‘submitform’])
{$Name = $_POST[‘Name’];
$Email = $_POST[‘Email’];
$Tel = $_POST[‘Tel’];
$TV = $_POST[‘TV’];
$oka = $_POST[‘oka’];
$ido = $_POST[‘ido’];
$Message = $_POST[‘Message’];
$require = $_POST[‘require’];
$browser = $HTTP_USER_AGENT;
$ip = $_SERVER[‘REMOTE_ADDR’];$dcheck = explode(„,”,$require);
while(list($check) = each($dcheck))
{
if(!$$dcheck[$check]) {
$error .= „You have not filled this filed(s): $dcheck[$check].
„;
}
}
if ((!ereg(„.+@.+..+”, $Email)) || (!ereg(„^[a-zA-Z0-9_@.-]+$”, $Email))){
$error .= „Wrong e-mail.
This e-mail address $Email – is not valid. Please enter correct e-mail address.”;
}
if($error)
{
echo $error;
echo ‘
Please try again.‘;
}
else
{
//START OF INCOMING MESSAGE (this message goes to your inbox)
$message = ”
Név: $Name:
E-mail: $Email
Tel: $Tel
Készülék tipusa: $TV
Kiszállás oka: $oka
Kiszállási idő: $idoÜzenet: $Message
—————————–
Browser: $browser
IP: $ip
„;
//END OF INCOMING MESSAGE (this message goes to your inbox)$subject = „Üzenet érkezett $Name -től”; //subject OF YOUR INBOX MESSAGE sent to you
$subject2 = „Érdeklődő üzenet $Name -től érkezett a szerviz weboldaláról!”; //subject of OUTGOING MESSAGE – edit this
//OUTGOING MESSAGE TEXT
$message2 = „Az alábbi üzenet érkezett a szerviz weboldaláról:
—————————–
Név: $Name:
E-mail: $Email
Tel: $TelKészülék tipusa: $TV
Kiszállás oka: $oka
Kiszállási idő: $idoÜzenet: $Message
—————————–
„;
//END OF outgoing MESSAGEmail($nasaadresa,”$subject”,”$message”,”From: $Name <$Email>”);
mail($Email,”$subject2″,”$message2″,”From: <$nasaadresa>”);
echo „$thanks”;
}
}
else{
//this is contact form down here, please edit if you know what are you doing… or the contact form may not be working.
echo ‘Kérjük írja meg a hibabejelentéshez szükséges adatait:
‘;
}
?>

