<? 
/*
#############################################################################
#	Php TR karakter sorununu çözen aykut arkadaþýma teþekkür ederim..:LAZOÝD:.. 			#
#	Aykut ARDIÇ 															#
#	aykut@fuardunyasi.com													#
#	ardx@hotmail.com														#
#																			#														#
# 	lazoid hocanýn php koduna ek olarak aþaðýdaki satýrlar eklenmiþtir 		#
#																			#
#############################################################################
*/
$eski 		= array("Ä±", "Ã§", "ÄŸ","Ã¼","ÅŸ","Ã¶","Ä°","Äž","Ãœ","Åž","Ã–","Ã‡"," ","\r"); // bu kýsýmda flash dan gelen hatalý karakterler belirleniyor
$yeni 		= array("ý", "ç", "ð","ü","þ","ö","Ý","Ð","Ü","Þ","Ö","Ç","&nbsp;","<br>");		 // hatalý karekterlerin yerine gelecek karakterler burada belirleniyor
$comments	= str_replace($eski, $yeni, $comments); 										 // flash dan gelen $comments deðiþkeni için gerekli karakter deðiþtirme iþlemi yapýlýyor
$fname		= str_replace($eski, $yeni, $fname);   										 	 // bir üst satýrda yapýlan deðiþiklikler $fname deðiþkenni için de uygulanýyor

/*
#############################################################################
#																			#
#	eðer sizin formunuzda daha fazla alan var ise 							#
#	"$yenialan	= str_replace($eski, $yeni, $yenialan);" 					#
#	iþlemini diðer deðiþkenler içinde kullanýn 								#
#	burdan sonrasý lazoid hocanýn kodu ama biraz deðiþtirdim				#
#																			#
#############################################################################
*/

$adminaddress ="info@akansupen.com.tr"; 
$siteaddress ="http://www.akansupen.com.tr"; 
$sitename = "AKANSUPEN A.S"; 
$date = date("d/m/Y H:i:s");
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);

$headers  = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-9\r\n";
$headers .= "From:".$adminaddress."\r\n";

$mesaj	 ="INSAN KAYNAKLARI FORUMUNDAN MESAJ ALINDI<br>";
$mesaj	.="isim  :".$fname."<br>";
$mesaj	.="email :".$email."<br>";
$mesaj	.="Mesaj :<br>------------------------------<br>";
$mesaj	.=$comments."<br>";
$mesaj	.="Kullanýcý bilgileri :<br>------------------------------<br>";
$mesaj	.=$HTTP_USER_AGENT."<br>";
$mesaj	.="//Hostname: ".$ip."<br>";
$mesaj	.="//IP adres: ".$REMOTE_ADDR."<br>";
$mesaj	.="Tarih/Zaman:".$date."<br>";




if ($action != ""): 
mail("$adminaddress","Insan Kaynaklari Forumundan Mesaj Alindi...",$mesaj,$headers);

//Kullanýcýya mail gönderiliyor
mail("$email","$sitename", 

"Dear Client;\n
Thank you for visiting our webpage.Your message has been sent to our department correctly , we will get in contact with you as soon as possible...\n


Akansu Plastik Profil Boru San. Tic. A.S.

$siteaddress","FROM:$adminaddress"); 

//cevap
$sendresult = "Your Message Has Been Sent...";

print("answer=".urlencode($sendresult)."&");

endif;

?>

