Neler yeni

Yeni mesajlar Yeni konular En çok mesaj En çok tepki En çok görüntülenen

Dikkat dikkat !! Iletişim form _?

tatlicocux

🌱Yeni Üye🌱
Katılım
21 Ara 2009
Mesajlar
3
Tepkime puanı
0
HERŞEY TAMAM FTP YE ATIYORUM SADECE 1YERİ DEĞİŞTİRİYORUM ALICI MAİL ADRESİNİ.ODA SİTENİN KENDİ İNFO@XXX.COM.TR MAİL ADRESİ

SORUN ŞUDUR HERŞEY ÇALIŞIYOR MAİL FORMUNDA BOŞ ALANLARINI DOLDURUNUZ UYARISI , ALANLARI TEMİZLEME FAKAT SEND DEDİĞİMİZDE SENDİNG.. DİYOR MAİL GİTMİYOR . AÇIK KAYNAK KODLU KULLANILMIŞ FORUMDUR.


1. send_email PHP DOSYASI KODLARI :


<?php
$contact_name = $_POST['name'];
$contact_email = $_POST['email'];
$contact_subject = $_POST['subject'];
$contact_message = $_POST['message'];

if( $contact_name == true )
{
$sender = $contact_email;
$receiver = "info@mail adresim (değişen tek yer).com.tr";
$client_ip = $_SERVER['REMOTE_ADDR'];
$email_body = "Name: $contact_name \nEmail: $sender \n\nSubject: $contact_subject \n\nMessage: \n\n$contact_message \n\nIP: $client_ip \n\nFlash Contact Form provided by https://www.xx.com";
$extra = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion();

if( mail( $receiver, "Flash Contact Form - $contact_subject", $email_body, $extra ) )
{
echo "success=yes";
}
else
{
echo "success=no";
}
}
?>




2.send_email_auto_response php dosya hosta attığım kodları :





<?php
$contact_name = $_POST['name'];
$contact_email = $_POST['email'];
$contact_subject = $_POST['subject'];
$contact_message = $_POST['message'];

if( $contact_name == true )
{
$sender = $contact_email;
$receiver = "info@mail adresim.com.tr";
$client_ip = $_SERVER['REMOTE_ADDR'];

$email_body = "Name: $contact_name \nEmail: $sender \n\nSubject: $contact_subject \n\nMessage: \n\n$contact_message \n\nIP: $client_ip \n\nFlash Contact Form provided by https://www.xx.com";
$email_body_auto_reply = "Hello $contact_name, \nThis is the auto reply message. Thank you. \n\nAdmin - https://www.xx.com";

$extra = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion();
$extra_auto_reply = "From: $receiver\r\n" . "Reply-To: $receiver \r\n" . "X-Mailer: PHP/" . phpversion();

mail( $sender, "Auto Reply - Re: $contact_subject", $email_body_auto_reply, $extra_auto_reply ); // auto reply mail to sender

if( mail( $receiver, "Flash Contact Form - $contact_subject", $email_body, $extra ) )
{
echo "success=yes";
}
else
{
echo "success=no";
}
}
?>
 
Üst