$ad="";
$dogumtarih="";
$telefon="";
$mail="";
$egitim="";
$dil="";
$tecrube="";
$referans="";
$check=1;
if(isset($_POST["hareket"])) {
$haraket=$_GET["haraket"];
$ad=$_POST["ad"];
$dogumtarih=$_POST["dogumtarih"];
$telefon=$_POST["telefon"];
$mail=$_POST["mail"];
$egitim=$_POST["egitim"];
$dil=$_POST["dil"];
$tecrube=$_POST["tecrube"];
$referans=$_POST["referans"];
if (($ad=='') || ($mail=='') || ($_POST["capt"] != $_SESSION["pa"])) { ?>
";
if(!$mail->Send()){ ?>
There are empty fields or security code wrong, please fill the fields marked with (*)
$check=0; } elseif (preg_match("/^([a-zA-Z0-9])+([a-zA-Z0-9\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/",$mail) && $check==1){ require("class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); // SMTP kullan $mail->Host = "mail.yelteneke.com.tr"; // SMTP adresi $mail->SMTPAuth = true; // smtp baglantisini yap $mail->Username = "smtp@yelteneke.com.tr"; // SMTP k.adi $mail->Password = "Yel2016*@"; // SMTP sifre $mail->SetLanguage("tr", "language/"); $mail->CharSet = "UTF-8"; $mail->From = "smtp@yelteneke.com.tr"; //gönderen $mail->FromName = "Yel Teneke web sitesi"; //gönderen ismi $mail->AddAddress("info@yelteneke.com.tr", "Yel Teneke"); $mail->WordWrap = 50; $mail->IsHTML(true); $mail->Subject = "İnsan Kaynakları Formu - English"; $mail->Body = "| Name, Surname | : " .$_POST['ad']. " |
| Birth Date | : " .$_POST['dogumtarih']. " |
| Telephone | : " .$_POST['telefon']. " |
| : " .$_POST['mail']. " | |
| Education Level | : " .$_POST['egitim']. " |
| Foreign Language | : " .$_POST['dil']. " |
| Work Experiences | : " .$_POST['tecrube']. " |
| References | : " .$_POST['referans']. " |
Your message was sent successfully, thanks for your interest
echo "Mailer Error: " . $mail->ErrorInfo; exit; } ?>Your message was sent successfully, thanks for your interest
} else { ?>There is typo in your e-mail address, please check your e-mail address and try again
$check=0; } } if(!isset($_POST["hareket"]) || $check==0) {?> } ?>


