• 08-07-2008, 14:13:51
    #1
    Üyeliği durduruldu
    Merhabalar sorum şu. Sitemde iletişim bölümü var. Fakat gönderilen mailler bana ulaşmıyor. Yardımcı olabilirseniz sevinirim. İletişim dosyasındaki kodları yazıyorum. Acaba orda mı bi sorun var ?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <link rel="stylesheet" href="css/stil.css" type="text/css">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
    <title>Resimlerim ® - Hosting</title>
    <style type="text/css">
    <!--
    body,td,th {
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size: 12px;
    }
    a:link {
    	color: #4F4F4F;
    	text-decoration: none;
    }
    a:visited {
    	text-decoration: none;
    	color: #4F4F4F;
    }
    a:hover {
    	text-decoration: none;
    	color: #4F4F4F;
    }
    a:active {
    	text-decoration: none;
    	color: #4F4F4F;
    }
    -->
    </style></head>
    <body>
    <? include("header.php"); ?>
    <table class="table_decoration" align="center" border="1" bordercolor="#cccccc" cellpadding="5" width="760">
    <tbody><tr><td width="260" valign="top"><img src="eklemeler/resimler/logo.png" width="260" height="260" />
    </td>
    <td width="468" valign="top"><p class="style2"><?
    include "formmailer.php";
    ?></p>
      </td>
    </tr></tbody></table>
    </body>
    </html>
  • 08-07-2008, 14:48:08
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    include ettiğin dosyaları yolla.
  • 08-07-2008, 15:28:26
    #3
    bu kodlarla hatayı öğrenemeyiz
  • 08-07-2008, 15:47:55
    #4
    Üyeliği durduruldu
    Hangi kodları koymam gerekiyor ?
  • 08-07-2008, 15:59:53
    #5
    header.php ve formmailer.php dosyaları veya mail ayarlarını yaptığın dosya ayarlarını koy buraya bakalım
  • 08-07-2008, 16:01:53
    #6
    Üyeliği durduruldu
    Header kodları ;

    <style type="text/css">
    <!--
    .style1 {
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size: 12px;
    }
    .style2 {font-size: 12px}
    a:link {
    	text-decoration: none;
    	color: #4F4F4F;
    }
    a:visited {
    	text-decoration: none;
    	color: #000000;
    }
    a:hover {
    	text-decoration: none;
    	color: #4F4F4F;
    }
    a:active {
    	text-decoration: none;
    	color: #4F4F4F;
    }
    -->
    </style>
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="789">
      <tbody><tr><td width="137"><a href="<? echo("$domain"); ?>"><img src="eklemeler/resimler/imageshack.gif" width="120" height="90" border="0" title=""></a></td>
    <td width="652" align="left" valign="bottom">
      <p><b><span class="style2"><span><img src="eklemeler/resimler/usttaraf.png" alt="ust" width="443" height="46" border="0"></span> </span></b></p>
      <p><b><span class="style2 style1"><img src="eklemeler/resimler/application_home.png" alt="ev" width="16" height="16" align="texttop"> <a href="index.php">Ana Sayfa </a>
        | <img src="eklemeler/resimler/folder_user.png" alt="kullanıcı" width="16" height="16" align="texttop"> <a href="sozlesme.php">Kullanım Şartları </a> | <img src="eklemeler/resimler/information.png" alt="nasıl" width="16" height="16" align="texttop"> <a href="nasil.php">Nasıl yüklerim? </a>
        | <img src="eklemeler/resimler/folder_table.png" alt="hakkında" width="16" height="16" align="texttop"> <a href="hakkinda.php">Hakkında</a>
        | <img src="eklemeler/resimler/application_edit.png" alt="iletişim" width="16" height="16" align="texttop"> <a href="iletisim.php">İletişim</a></span></b> <b><span class="style2 style1">| <img src="eklemeler/resimler/folder_heart.png" alt="iletişim" width="16" height="16" align="texttop" /> <a href="tavsiyeet.php">Tavsiye Et </a></span></b></p></td>
    </tr></tbody></table>
  • 08-07-2008, 16:04:03
    #7
    Üyeliği durduruldu
    formmailer kodları ;

    <?php
    // email adresiniz:
    $mailto = "admin@resimeklee.com";
    
    # Maximum size of attachment in bytes:
    $max_attach_size = 500000;
    
    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html>
    <head>
    <title>Formmailer</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
    <style type="text/css">
    <!--
    body                { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; color: #000000; background: #ffff3; margin: 20px; padding: 0px; border: 0px; }
    .caution            { color: red; font-weight: bold; }
    -->
    </style>
    </head>
    <body><?php
    /*if (empty($_POST['form_submitted']))
     {
      ?><p>Lütfen formu doldurun:</p><?php
     }
    */
     if (isset($_POST["form_submitted"]))
     {
      $name = trim(preg_replace("/\r/", "", $_POST['name']));
      $name = preg_replace("/\n/", "", $name);
      $name = stripslashes($name);
      $email = trim(preg_replace("/\r/", "", $_POST['email']));
      $email = preg_replace("/\n/", "", $email);
      $subject = trim(stripslashes($_POST['subject']));
      $text = trim(stripslashes($_POST['text']));
    
      unset($errors);
      if($email == "") $errors[] = "E-mail adresi girilmemiş";
      elseif($email != "" and !preg_match("/^[^@]+@.+\.\D{2,5}$/", $email)) $errors[] = "E-mail geçerli gözükmüyor";
      if($text == "") $errors[] = "Mesaj girilmemiş";
      if($_FILES['probe']['size'] > $max_attach_size) $errors[] = "ekiniz çok büyük (".number_format($_FILES['probe']['size']/1000,0,",","")." KB) - maximum size: ".number_format($max_attach_size/1000,0,",","")." KB";
    
      if (empty($errors))
       {
        #if ($name != "") $mail_name=$name; else $mail_name="Unknown";
        if ($subject != "") $mail_subject = $subject; else $mail_subject = "No subject";
        #if ($email != "") $mail_email = $email; else $mail_email = "email@unknown.xyz";
        $ip = $_SERVER["REMOTE_ADDR"];
    
        // if attachment, MIME-Mail:
        if (isset($_FILES['probe']['name']) && trim($_FILES['probe']['name']) != "")
         {
          // read and encode file:
          $datei_content = fread(fopen($_FILES['probe']['tmp_name'],"r"),filesize($_FILES['probe']['tmp_name']));
          $datei_content = chunk_split(base64_encode($datei_content),76,"\n");
          // Boundary:
          $boundary = md5(uniqid(rand()));
          // Mail-Header:
          $mail_header = "From: ".$name." <".$email.">\n";
          $mail_header .= "X-Sender-IP: ".$ip."\n";
          $mail_header .= "MIME-Version: 1.0\n";
          $mail_header .= "Content-Type: multipart/mixed; boundary=\"".$boundary."\"\n";
          $mail_header .= "This is a multi-part message in MIME format.\n";
          // Mail-Text:
          $mail_header .= "--".$boundary;
          $mail_header .= "\nContent-Type: text/plain";
          $mail_header .= "\nContent-Transfer-Encoding: 8bit";
          $mail_header .= "\n\n".$text;
          // Attachment:
          $mail_header .= "\n--".$boundary;
          $mail_header .= "\nContent-Type: ".$_FILES['probe']['type']."; name=\"".$_FILES['probe']['name']."\"";
          $mail_header .= "\nContent-Transfer-Encoding: base64";
          $mail_header .= "\nContent-Disposition: attachment; filename=\"".$_FILES['probe']['name']."\"";
          $mail_header .= "\n\n".$datei_content;
          // End:
          $mail_header .= "\n--".$boundary."--";
          // Sende E-Mail und gebe Fehler bzw. Bestaetigung aus
          if (@mail($mailto,$mail_subject,"",$mail_header)) $sent = true; else $errors[] = "Mail serverla bağlantı kurulamadı lütfen daha sonra tekrar deneyin";
         }
        // no attachment, normal E-mail:
        else
         {
          $mail_header = "From: ".$name." <".$email.">\n";
          $mail_header .= "X-Sender-IP: $ip\n";
          $mail_header .= "Content-Type: text/plain";
          if (@mail($mailto,$mail_subject,$text,$mail_header)) $sent = true; else $errors[] = "Mail serverla bağlantı kurulamadı lütfen daha sonra tekrar deneyin";
         }
    
        // copy to sender:
        if (isset($sent))
         {
          $copy_subject = strip_tags($mail_subject);
          $copy_subject = str_replace('http://','',$copy_subject);
          $copy_subject = str_replace('www.','www. ',$copy_subject);
          $copy_text = strip_tags($text);
          $copy_text = str_replace('http://','',$copy_text);
          $copy_text = str_replace('www.','www. ',$copy_text);
          if (isset($_FILES['probe']['name']) && trim($_FILES['probe']['name']) != "") $copy_text = "Subject: ".$copy_subject."\n\n".$copy_text."\n\nAttachment: ".$_FILES['probe']['name']; else $copy_mail_text = "Subject: ".$mail_subject."\n\n".$copy_text;
          $header= "From: ".$mailto."\n";
          $header .= "X-Sender-IP: ".$ip."\n";
          $header .= "Content-Type: text/plain";
          @mail($email, "Copy of sent e-mail", $copy_text, $header);
         }
       }
     }
    
    if (empty($sent))
     {
      if(isset($errors))
       {
        ?>
    <p class="caution">Hata:</p>
    <ul><?php foreach($errors as $f) { ?><li><?php echo $f; ?></li><?php } ?></ul><br /><?php
       }
    
      ?><form method="post" action="<?php echo basename($_SERVER["PHP_SELF"]); ?>" enctype="multipart/form-data"><div>
      <p><b>Adınız:</b><br /><input type="text" name="name" value="<?php if (isset($name)) echo htmlentities(stripslashes($name)); else echo ""; ?>" size="35" /></p>
      <p><b>E-mail:</b><br /><input type="text" name="email" value="<?php if (isset($email)) echo htmlentities(stripslashes($email)); else echo ""; ?>" size="35" /></p>
      <p><b>Konu:</b><br /><input type="text" name="subject" value="<?php if (isset($subject)) echo htmlentities(stripslashes($subject)); else echo ""; ?>" size="35" /></p>
      <p><b>Mesaj:</b><br /><textarea name="text" cols="55" rows="12"><?php if (isset($text)) echo htmlentities(stripslashes($text)); else echo ""; ?></textarea></p>
      <b>Ek:</b><br /><input type="file" name="probe" value="<?php if (isset($_POST['probe'])) echo htmlentities(stripslashes($_POST['probe'])); else echo ""; ?>" size="20"/></p>
      <br /><br />
      <p><input type="submit" name="form_submitted" value="Tamam - Gönder" /></p>
      </div></form><?php
     }
    else
     {
      if (empty($email)) { ?><p><b>Teşekkürler!</b><br />Mesajınız başarıyla gönderildi ama email adresi göndermediğiniz için cevaplayamayacağım.</p><?php }
      else { ?><p><b>Teşekkürler!</b><br />mesajınız başarıyla gönderildi.</p><?php }
     }
    ?>
    </body>
    </html>
  • 08-07-2008, 16:05:03
    #8
    bilgi@rakiphost.com msn adresimi ekle yardımcı oluyum
  • 08-07-2008, 16:06:38
    #9
    Üyeliği durduruldu
    Ekledim arkadaşım. Ayrıca ilgi ve yardımın için çok teşekkür ederim.