• 14-03-2013, 10:40:13
    #1
    Merhaba. Wordpress'e yeni yeni giriş yaptığım için iletişim formu hakkında takıldığım bir konuyu sizlerle paylaşmak istedim.

    Hazır olan bir temayı kurdum. Gerekli sayfaları oluşturdum (Ürünler, referanslar..)
    Yalnız iletişim sayfasını oluşturdum. Sitenin normal görünümünde iletişim formunda gerekli bilgileri girdiğim zaman mesajınız ulaşmıştır bilgisini veriyor.

    Asıl sorum şu; iletişim formundan gönderilen mesaj nereye gidiyor. Mevcut ayarları nasıl yapabilirim. İletişim formundan gönderilen mesajı istediğim bir mail adresine göndertebilir miyim. Umarım problemimi tam olarak anlatabilmişimdir.

    Yardımlarınız için şimdiden teşekkür ederim.
  • 14-03-2013, 10:47:22
    #2
    İletişim formu panelinden mesajın nereye gideceğini felan ayarlayabilirsiniz.
  • 14-03-2013, 10:49:27
    #3
    SeliM adlı üyeden alıntı: mesajı görüntüle
    İletişim formu panelinden mesajın nereye gideceğini felan ayarlayabilirsiniz.
    İletişim formu paneli derken ? Hazır tema kurduğum için herhangi bir iletişim formu eklentisi kurmadım. Mevcut Contact şablonu mevcut zaten. Bunun ayarlarını nasıl yapabilirim diye sormuştum
  • 14-03-2013, 11:04:29
    #4
    Bu adresten eklentiyi indir. Eklentiyi aktif ettikten sonra panelde iletisim bolumu var oradan kisa kodu al ve gorunmesini istedigin sayfaya ekle.
  • 14-03-2013, 11:29:48
    #5
    Violette adlı üyeden alıntı: mesajı görüntüle
    Bu adresten eklentiyi indir. Eklentiyi aktif ettikten sonra panelde iletisim bolumu var oradan kisa kodu al ve gorunmesini istedigin sayfaya ekle.
    Öncelikle ilginiz için teşekkür ederim. Ben contact form 7 yi kurdum fakat görüntü olarak pek beğenmedim.

    Mevcut contact formun ayarlarını, yani hangi mail adresine geleceğini nasıl ayarlarız.

    Bahsettiğim safya bu: Ds/İletişim

    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 11:29:48 -->-> Daha önceki mesaj 11:13:54 --

    Tema içerisindeki iletişim ile ilgili dosyalar şunlar;

    contact.php

    <style>
    	.widefat td{
    		vertical-align:middle;
    		padding-top:20px;
    		padding-bottom:20px;
    	}
    </style>
    
    <div class="wrap nosubsub">
    	<div id="icon-link-manager" class="icon32"><br /></div><h2>Contact Page</h2><br  />
    	
    	<div class="clear"></div>
    
    	<form action="options.php" method="post">
    	<?php wp_nonce_field('update-options'); ?>
    
    	<table class="widefat" cellspacing="0">
    	
    		<thead>
    			<tr>
    				<th scope="col" id="name" class="manage-column column-name" colspan="3">Table Of Contact</th>
    			</tr>
    			</thead>
    			
    			<tfoot>
    			<tr>
    				<th scope="col"  class="manage-column column-name" colspan="3"></th>
    			</tr>
    		</tfoot>
    		<tbody>
    		
    		
    		<tr class="alternate">
    			<td class="column-name" colspan="3">
    				<table>
    	
    				<tr >
    					<td style="border:0px;">Contact Form email</td>
    					<td style="border:0px; width:350px;">
    						<input type="text" name="siteadmin_email" tabindex="1" size="30" value="<?php $email = get_option('siteadmin_email'); if ($email != "") { echo get_option('siteadmin_email'); } else { bloginfo('admin_email'); } ?>" />
    					</td> 
    				</tr>
    				</table>
    			</td>
    		</tr>
    
    		<tr class="alternate">
    			<td class="column-name" colspan="3">
    				<table>
    	
    				<tr >
    					<td style="border:0px;">
    					Mail Header Line Break Type : <input type="text" name="email_set" tabindex="1" size="10" value="<?php echo get_option('email_set', 'LF'); ?>" /> <span class="tablespan">Please write LF or CRLF</span>
    					<br /><span class="tablespan">If mail messages are not received, try using a LF (\n) only. Some poor quality Unix mail transfer agents replace LF (\n) by CRLF (\r\n) automatically (which leads to doubling C (\r) if CRLF (\r\n) is used).</span>
    				</tr>
    				</table>
    			</td>
    		</tr>
    		
    		<tr>
    			<td class="column-name" colspan="3"></td>
    		</tr>
    		
    	
    		<tr class="alternate">
    			<td class="column-name" colspan="3">
    				<table>
    	
    			
    				<tr >
    					<td style="border:0px;">Address Enable ? <input name="disable_contact_address" type="radio" value="0" <?php if(get_option('disable_contact_address') == 0){ echo "checked=\"checked\""; } ?>/> No, Thanks &nbsp;&nbsp; 
    					<input name="disable_contact_address" type="radio" value="1" <?php if(get_option('disable_contact_address', 1 ) == 1){ echo "checked=\"checked\""; } ?>/> Yes, please</td>
    					<td style="border:0px;"></td>
    				</tr>
    				<tr >
    					<td style="border:0px;"><img src="<?php echo get_bloginfo('template_url'); ?>/images/admin/page_contact.png"  alt=""/></td>
    					<td style="border:0px; width:350px;"><input type="text" style="width:100%;" name="our_address_title" value="<?php echo get_option("our_address_title", "Meet Our Company"); ?>"/><br>
    					
    						<?php $address_text = '28. Freelancer City:Ankara / Country:TURKEY'; ?>
    						<textarea rows='3' style="width:100%;" name='address_text'><?php echo get_option('address_text', $address_text); ?></textarea>
    					</td> 
    				</tr>
    				</table>
    			</td>
    		</tr>
    		
    		<tr>
    			<td class="column-name" colspan="3"></td>
    		</tr>
    
    		<tr class="alternate">
    			<td class="column-name" colspan="3">
    			
    				<table>
    				<tr >
    					<td style="border:0px;">Call us Enable ? <input name="disable_contact_call" type="radio" value="0" <?php if(get_option('disable_contact_call') == 0){ echo "checked=\"checked\""; } ?>/> No, Thanks &nbsp;&nbsp; 
    					<input name="disable_contact_call" type="radio" value="1" <?php if(get_option('disable_contact_call', 1 ) == 1){ echo "checked=\"checked\""; } ?>/> Yes, please</td>
    					<td style="border:0px;"></td>
    				</tr>
    				<tr >
    					<td style="border:0px;"><img src="<?php echo get_bloginfo('template_url'); ?>/images/admin/call_us.png"  alt=""/></td>
    					<td style="border:0px; width:350px;"><input type="text" style="width:100%;" name="our_address_call" value="<?php echo get_option("our_address_call", "Call us via Phone"); ?>"/><br>
    					
    						<?php $call_text = 'Tel. +90 (312) 441 23 4* <br />
    Fax. +90 (312) 441 23 4*'; ?>
    						<textarea rows='3' style="width:100%;" name='call_text'><?php echo get_option('call_text', $call_text); ?></textarea>
    					</td> 
    				</tr>
    				</table>
    				
    				
    			</td>
    		</tr>
    		
    		<tr>
    			<td class="column-name" colspan="3"></td>
    		</tr>
    
    		<tr class="alternate">
    			<td class="column-name" colspan="3">
    			
    				<table>
    				<tr >
    					<td style="border:0px;">Emails Enable ? <input name="disable_contact_emails" type="radio" value="0" <?php if(get_option('disable_contact_emails') == 0){ echo "checked=\"checked\""; } ?>/> No, Thanks &nbsp;&nbsp; 
    					<input name="disable_contact_emails" type="radio" value="1" <?php if(get_option('disable_contact_emails', 1 ) == 1){ echo "checked=\"checked\""; } ?>/> Yes, please</td>
    					<td style="border:0px;"></td>
    				</tr>
    				<tr >
    					<td style="border:0px;"><img src="<?php echo get_bloginfo('template_url'); ?>/images/admin/emails.png"  alt=""/></td>
    					<td style="border:0px; width:350px;"><input type="text" style="width:100%;" name="our_emails" value="<?php echo get_option("our_emails", "Emails"); ?>"/><br>
    					
    						<?php $email_text = 'General: info[MENTION=69556]CodeS[/MENTION]tarlive.com<br />
    Support: support[MENTION=69556]CodeS[/MENTION]tarlive.com<br />
    Shopping: shopping[MENTION=69556]CodeS[/MENTION]tarlive.com'; ?>
    						<textarea rows='3' style="width:100%;" name='email_text'><?php echo get_option('email_text', $email_text); ?></textarea>
    					</td> 
    				</tr>
    				</table>
    				
    			</td>
    		</tr>
    		
    		<tr>
    			<td class="column-name" colspan="3"></td>
    		</tr>
    
    		<tr class="alternate">
    			<td class="column-name" colspan="3">
    			
    				<table>
    				<tr >
    					<td style="border:0px;">Contact Text Enable ? <input name="disable_contact_text" type="radio" value="0" <?php if(get_option('disable_contact_text') == 0){ echo "checked=\"checked\""; } ?>/> No, Thanks &nbsp;&nbsp; 
    					<input name="disable_contact_text" type="radio" value="1" <?php if(get_option('disable_contact_text', 1 ) == 1){ echo "checked=\"checked\""; } ?>/> Yes, please</td>
    					<td style="border:0px;"></td>
    				</tr>
    				<tr >
    					<td style="border:0px;"><img src="<?php echo get_bloginfo('template_url'); ?>/images/admin/contact_text.png"  alt=""/></td>
    					<td style="border:0px; width:350px;"><input type="text" style="width:100%;" name="miscell" value="<?php echo get_option("miscell", "Miscellaneous"); ?>"/><br>
    					
    						<?php $contact_text = 'Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. <br /><br />Excepteur sint occaecat cupidatat non proident, sunt in anim id est laborum! Allamco laboris nisi ut aliquip ex ea commodo consequat! Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'; ?>
    						<textarea rows='3' style="width:100%;" name='contact_text'><?php echo get_option('contact_text', $contact_text); ?></textarea>
    					</td> 
    				</tr>
    				</table>
    				
    			</td>
    		</tr>
    		
    		<tr>
    			<td class="column-name" colspan="3"></td>
    		</tr>
    
    		<tr class="alternate">
    			<td class="column-name" colspan="3">
    			
    				<table>
    				<tr >
    					<td style="border:0px;">Google Map Enable ? <input name="disable_google_map" type="radio" value="0" <?php if(get_option('disable_google_map') == 0){ echo "checked=\"checked\""; } ?>/> No, Thanks &nbsp;&nbsp; 
    					<input name="disable_google_map" type="radio" value="1" <?php if(get_option('disable_google_map', 1 ) == 1){ echo "checked=\"checked\""; } ?>/> Yes, please</td>
    					<td style="border:0px;"></td>
    				</tr>
    				<tr >
    					<td style="border:0px;"><img src="<?php echo get_bloginfo('template_url'); ?>/images/admin/google.png"  alt=""/></td>
    					<td style="border:0px; width:350px;">
    						
    						<?php $google_iframe_key = '<iframe width="525" height="279" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=tr&amp;geocode=&amp;q=ankara&amp;ie=UTF8&amp;hq=&amp;hnear=Ankara,+T%C3%BCrkiye&amp;z=15&amp;ll=39.943873,32.856034&amp;output=embed"></iframe>'; ?>
    						<textarea rows='15' style="width:100%;" name='google_iframe_key'><?php echo get_option('google_iframe_key', $google_iframe_key); ?></textarea>
    						<input type="text" style="width:100%;" name="google_title" value="<?php echo get_option("google_title", "Google Map"); ?>"/><br>
    						<?php $google_text = 'ailing lists'; ?>
    						<textarea rows='5' style="width:100%;" name='google_text'><?php echo get_option('google_text', $google_text); ?></textarea>
    					</td> 
    				</tr>
    				</table>
    				
    				
    			</td>
    		</tr>
    	
    		<tr>
    			<td class="column-name" colspan="3"></td>
    		</tr>
    
    		<tr class="alternate">
    			<td class="column-name" colspan="3">
    			
    				<table>
    				<tr >
    					<td style="border:0px;">Contact Form Enable ? <input name="disable_contact_form" type="radio" value="0" <?php if(get_option('disable_contact_form') == 0){ echo "checked=\"checked\""; } ?>/> No, Thanks &nbsp;&nbsp; 
    					<input name="disable_contact_form" type="radio" value="1" <?php if(get_option('disable_contact_form', 1 ) == 1){ echo "checked=\"checked\""; } ?>/> Yes, please</td>
    					<td style="border:0px;"></td>
    				</tr>
    				<tr >
    					<td style="border:0px;"><img src="<?php echo get_bloginfo('template_url'); ?>/images/admin/form.png"  alt=""/></td>
    					<td style="border:0px; width:350px;">
    						<input type="text" style="width:100%;" name="form_title" value="<?php echo get_option("form_title", "Contact Form"); ?>"/><br><br>
    						<input type="text" style="width:100%;" name="form_name" value="<?php echo get_option("form_name", "Name"); ?>"/><br><br>
    						<input type="text" style="width:100%;" name="form_mail" value="<?php echo get_option("form_mail", "Email Address"); ?>"/><br><br>
    						<input type="text" style="width:100%;" name="form_subject" value="<?php echo get_option("form_subject", "Subject"); ?>"/><br><br>
    						<input type="text" style="width:100%;" name="form_message" value="<?php echo get_option("form_message", "Message"); ?>"/><br><br>
    						<input type="text" style="width:100%;" name="required" value="<?php echo get_option("required", "(* required)"); ?>"/><br><br>
    						<input type="text" style="width:100%;" name="form_submit" value="<?php echo get_option("form_submit", "SUBMIT"); ?>"/><br><br>
    						<input type="text" style="width:100%;" name="form_success" value="<?php echo get_option("form_success", "Success, mail has been sent."); ?>"/><br><br>
    						<input type="text" style="width:100%;" name="form_error" value="<?php echo get_option("form_error", "deneme."); ?>"/><br>
    					</td> 
    				</tr>
    				</table>
    			
    			</td>
    		</tr>
    	
    		<tr class="alternate">
    			<td class="column-name" colspan="3">
    				<input type="hidden" name="action" value="update" />
    				<input type="hidden" name="page_options" value="siteadmin_email, form_submit, form_message, disable_contact_form, form_title, form_name, form_mail, form_subject, required, form_success, form_error, disable_contact_address, our_address_title, address_text, disable_contact_call, our_address_call, call_text, disable_contact_emails, our_emails, email_text, disable_contact_text, miscell, contact_text, disable_google_map, google_iframe_key, google_title, google_text" />
    				<input type="submit" name="publish" id="publish" accesskey="p" tabindex="5" class="button-primary" value="Save" />
    				</form>
    			</td>
    		</tr>
    		
    		</tbody>
    	</table>
    
    </div>

    get_mail.php

    <?php
    $paths = array(
    	".",
    	"..",
    	"../..",
    	"../../..",
    	"../../../..",
    	"../../../../..",
    	"../../../../../..",
    	"../../../../../../..",
    	"../../../../../../../.."
    );
    
    foreach($paths as $path) 
    {
    	if([MENTION=42409]include[/MENTION]( $path.'/wp-load.php'))
    	{
    		break;
    	}
    }
    
    $form_mail = get_option('siteadmin_email', get_bloginfo('admin_email')); 
    
    
    $name = $_REQUEST["Name"];
    $email = $_REQUEST["Email"];
    $subject = $_REQUEST["Subject"];
    $message_content = $_REQUEST["Message"];
    	
    //-----------------------------------------------------
    //-----------------------------------------------------
    $address = $form_mail;
    $sender = mb_encode_mimeheader($name, "UTF-7", "Q") . " <" . $email . ">";
    $subject_utf  =  mb_encode_mimeheader($subject,"UTF-8", "B", "\n");
    
    //-----------------------------------------------------
    //-----------------------------------------------------
    
    
    function sendMail($from, $to, $subject, $plain, $html = false, $charset = "iso-8859-1") {
    
    	$cur_lb = get_option("email_set", "LF");
    	
    	if($cur_lb == "CRLF"){
    		$lb = "\r\n";
    	}else if($cur_lb == "LF"){
    		$lb = "\n";
    	}
    
    	if($html == false) {
    
    		$headers = "From: ".$from.$lb;
    		$headers .= "Reply-To: ".$from.$lb;
    		$headers .= "MIME-Version: 1.0".$lb;
    		$headers .= "X-Priority: 3".$lb;
    		$headers .= "X-Mailer: RobustMail [1.0]".$lb;
    		$headers .= "Content-type: text/html; charset=".$charset.$lb;
    		$mail_sent = [MENTION=52378]Mail[/MENTION]($to, $subject, $plain, $headers);
    		return $mail_sent;
    
    	}
    
    	$random_hash = md5(microtime());
    	$headers = "From: ".$from.$lb;
    	$headers .= "Reply-To: ".$from.$lb;
    	$headers .= "MIME-Version: 1.0".$lb;
    	$headers .= "X-Priority: 3".$lb;
    	$headers .= "X-Mailer: RobustMail [1.0]".$lb;
    	$headers .= "Content-Type: multipart/alternative;".$lb."\tboundary=\"bo_".$random_hash."\"";
    
    ob_start();
    
    ?>
    --bo_<?php echo $random_hash.$lb; ?>
    Content-Type: text/plain; charset = "<?php echo $charset; ?>"
    Content-Transfer-Encoding: 7bit
    
    <?php echo $plain; ?>
    
    
    --bo_<?php echo $random_hash.$lb; ?>
    Content-Type: text/html; charset = "<?php echo $charset; ?>"
    Content-Transfer-Encoding: 7bit
    
    <?php echo $html; ?>
    
    
    
    
    --bo_<?php echo $random_hash; ?>--
    <?php
    	$message = ob_get_clean();
    	$to = is_array($to) ? implode(", " , $to) : $to;
    	$mail_sent = [MENTION=52378]Mail[/MENTION]($to, $subject, $message, $headers);
    	return $mail_sent;
    }
    ob_start();
    ?>
    You got an email from your website!<br />
    ----------------------------------------<br />
    Name : <?php echo $name; ?><br />
    Email : <?php echo $email; ?><br />
    Subject : <?php echo $subject; ?><br />
    Message : <?php echo $message_content; ?><br />
    <?
    $mailBody = ob_get_clean();
    $send_mail = sendMail($sender, $address, $subject_utf, $mailBody, $html = false, $charset = "utf-8");
    echo $send_mail ? "Mail sent" : "Mail failed";
    ?>
  • 14-03-2013, 11:49:35
    #6
    gorunen o ki. admin adli kullaniciya hangi maili tanimlamissan ona mail atiyor

    $form_mail = get_option('siteadmin_email', get_bloginfo('admin_email'));
  • 14-03-2013, 13:49:11
    #7
    ufoss adlı üyeden alıntı: mesajı görüntüle
    gorunen o ki. admin adli kullaniciya hangi maili tanimlamissan ona mail atiyor

    $form_mail = get_option('siteadmin_email', get_bloginfo('admin_email'));
    Bahsettiğiniz, Admin panelinde Ayarlar/Genel bölümdeki yer ise o maile adresine gelmiyor ?

    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 13:49:11 -->-> Daha önceki mesaj 12:06:41 --

    arkadaşlar yardım edecek kimse yok mu ?
  • 14-03-2013, 14:02:31
    #8
    sende
    siteadmin_email yerine direk email adresini yaz
    orda deneme yapman lazim
  • 14-03-2013, 15:09:10
    #9
    http://www.dosya.tc/server3/KyuRah/iletisim.rar.html

    Ben kendim boyle bir form kullaniyordum. Istersen sitene bir subdomain acip kodlari oradan cekebilirsin veya anadizine atip hazirlayabilirsin. siteadi ve emailadresin yazan yerleri degistirmen yeterlidir.