Arkadaşlar aşağıdaki gibi bir iletişim formu var, bu form üzerinde devam etmek zorundayım ve hatayı bulamıyorum.
Ad soyad, telefon ve eposta değerleri yan yana aşağıdaki gibi yazdığım da sadece ad soyad ın ilk harfi geliyor. Sadece ad soyad yazarsam koda o zaman adsoyad tam olarak mailime geliyor. Bunu nasıl yazarsam tüm bilgiler gelir mail adresime
<?
if($_POST['adsoyad'] != ""){
$icerik = $_POST['adsoyad']['telefon']['eposta'];
require_once ( 'phpmailer/class.phpmailer.php' ); // Add the path as appropriate
$Mail = new PHPMailer();
$Mail->IsSMTP(); // Use SMTP
$Mail->Host = "5.2.86.xxx"; // Sets SMTP server
$Mail->SMTPDebug = 1; // 2 to enable SMTP debug information
$Mail->SMTPAuth = TRUE; // enable SMTP authentication
$Mail->SMTPSecure = "tls"; //Secure conection
$Mail->Port = 587; // set the SMTP port
$Mail->Username = ".com"; // SMTP account username
$Mail->Password = ""; // SMTP account password
$Mail->Priority = 1; // Highest priority - Email priority (1 = High, 3 = Normal, 5 = low)
$Mail->CharSet = 'UTF-8';
$Mail->Encoding = '8bit';
$Mail->Subject = "Yeni Bildirim";
$Mail->ContentType = 'text/html; charset=utf-8\r\n';
$Mail->From = '@.com';
$Mail->FromName = '';
$Mail->WordWrap = 900; // RFC 2822 Compliant for Max 998 characters per line
$Mail->AddAddress("......@gmail.com"); // To:
$Mail->isHTML( TRUE );
$Mail->Body = $icerik;
$Mail->Send();
$Mail->SmtpClose();
if ( $Mail->IsError() ) {
echo 0;
}
else {
echo 1;
}
}
?>