include"yonetim/sabit.php";
?>
@$islem=$_GET['islem'];
if($islem=="gonder")
{
$tarih = date("d-m-Y H:i:s");
$adi=trim($_POST['your-name']);
$tel=trim($_POST['your-phone']);
$eposta=trim($_POST['your-email']);
$konu="İletisim Formu";
$mesaj=trim($_POST['your-message']);
$ipsi = $_SERVER['REMOTE_ADDR'];
$gonderadres=$siteadres."iletisim.php";
require_once("class.phpmailer.php");
$sms = "Adı : ".$adi."
";
$sms .= "Telefon : ".$tel."
";
$sms .= "E-Posta : ".$eposta."
";
$sms .= "Konu : ".$konu."
";
$sms .= "Mesaj : ".$mesaj."
";
$sms .= "Ip Adresi : ".$ipsi."
";
$mail = new PHPMailer();
$mail->IsHTML(true);
$mail->IsSMTP();
$mail->Host = "mail.beecopter.net";
$mail->SMTPAuth = true;
$mail->Username = "info@beecopter.net";
$mail->Password = "Vy+2S!B$";
$mail->From = "info@beecopter.net";
$mail->Fromname = $adi;
$mail->AddAddress("info@beecopter.net","Site Mesajı");
$mail->Subject = "İLETİŞİM FORMU";
$mail->Body =$sms;
if($mail->Send())
{
echo '';
}
else{
echo '';
}
}
?>