• 04-12-2010, 12:47:35
    #1
    elimde flashta hazırlanmış bir site var ve iletişim kısmında bir form var. dosyalar içerisinde bir de email.php dosyası var. php dosyasının içindeki ve flashtaki email kısımlarına kendi mailimi yazdım ftp ye attım. formu doldurup gönderdiğimde mesajınız gönderildi diyor fakat mail gelmiyor. bu formu çalıştırmam için başka ne yapmam gerekiyor. bilgisi olanlar yardımcı olursa sevinirim.

    email.php içeriği

    <?php
    //Type the receiever's e-mail address
    $emailAddress = "you@mail.com";
    //Type your Site Name
    $siteName = "MAIN";
    
    $contact_name = $_POST['name'];
    $contact_email = $_POST['email'];
    $contact_subject = $_POST['subject'];
    $contact_message = $_POST['message'];
    
    if( $contact_name == true ) {
        $sender = $contact_email;
        $receiver = $emailAddress;
        $client_ip = $_SERVER['REMOTE_ADDR'];
    
        $email_body = "The Name Of The Sender: $contact_name \nEmail: $sender \n\nSubject: $contact_subject
    \n\nMessage: \n\n$contact_message \n\nIP ADDRESS: $client_ip \n\n$siteName";
    
        $emailAutoReply = "Hi $contact_name, \n\nWe have just received your E-Mail. We will get
    in touch in a few days. Thank you!  \n\n$siteName ";
    
        $extra = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion();
        $autoReply = "From: $receiver\r\n" . "Reply-To: $receiver \r\n" . "X-Mailer: PHP/" . phpversion();
    
        mail( $sender, "Auto Reply: $contact_subject", $emailAutoReply, $autoReply );
    
        if( mail( $receiver, "New E-Mail - $contact_subject", $email_body, $extra ) ) {
            echo "success=yes";
        } else {
            echo "success=no";
        }
    }
    ?>
    ben sadece

    $emailAddress = "you@mail.com";
    //Type your Site Name
    $siteName = "MAIN";

    burayı editledim. editlemem gereken başka yerler var mı ?
  • 04-12-2010, 17:46:20
    #2
    Göndermesi lazım maili veya Spam'e düşüyor.
    Hosting sağlayıcınla konuşman gerek, hosting'in mail fonksiyonu kapalı olabilir.
  • 04-12-2010, 17:56:50
    #3
    efec89 adlı üyeden alıntı: mesajı görüntüle
    Göndermesi lazım maili veya Spam'e düşüyor.
    Hosting sağlayıcınla konuşman gerek, hosting'in mail fonksiyonu kapalı olabilir.
    peki o gösterdiğim php dosyasında editlenmesi gereken başka bir yer var mı? birde flash dosyasında aynı you@mail.com gibi bieşy vardı onu editledim.
  • 04-12-2010, 18:11:44
    #4
    Alıntı
    $email_body = "The Name Of The Sender: $contact_name \nEmail: $sender \n\nSubject: $contact_subject
    \n\nMessage: \n\n$contact_message \n\nIP ADDRESS: $client_ip \n\n$siteName";

    $emailAutoReply = "Hi $contact_name, \n\nWe have just received your E-Mail. We will get
    in touch in a few days. Thank you! \n\n$siteName ";

    Bunları türkçeye çevirebilirsin, onun dışında yok
  • 04-12-2010, 18:15:22
    #5
    Teşekkürler