[Linux-programlama] Re: Linux-programlama Toplu Mesajý, Sayý 44, Konu 30

---------

[Linux-programlama] Re: Linux-programlama Toplu Mesajý, Sayý 44, Konu 30

From: serkan KUTLUTÜRKAN <serkankutluturkan_at_gmail.com>
Date: Sun, 18 May 2008 11:43:53 +0300
Message-ID: <de8d12330805180143j3bb4bbe7x3db501277f57f57f@mail.gmail.com>

Eðer gönderirken bir soru oluþmuyorsa gönderdiðin mail fonksiyonu nun
baþýna bir @ iþareti koysan sanýrým sorun çözülür.
eðeryapmak istediðin yanlýzca bir for uygulamasýysa beni kaydet senin
için bir form gönderebilirim

17 Mayýs 2008 Cumartesi 12:00 tarihinde
<linux-programlama-request_at_liste.linux.org.tr> yazdý:
> Linux-programlama listesi mesajlarýný þu adrese gönderin:
> linux-programlama_at_liste.linux.org.tr
>
> World Wide Web ile üye olmak veya üyelikten çýkmak için þu sayfayý
> ziyaret edin:
> http://liste.linux.org.tr/mailman/listinfo/linux-programlama
> veya e-posta yoluyla konusunda veya gövdesinde 'help' yazan bir mesajý
> þu adrese gönderin:
> linux-programlama-request_at_liste.linux.org.tr
>
> Bu listeyi yöneten kiþiye þu adresten ulaþabilirsiniz:
> linux-programlama-owner_at_liste.linux.org.tr
>
> Yanýt yazarken, lütfen Konu satýrýný düzenleyerek þu tür bir þekilden
> daha belirli olmasýný saðlayýn: "Ynt: Linux-programlama toplu
> mesajýnýn içeriði..."
>
>
>
> Günün Konularý:
>
> 1. PHPMailer hakkýnda sorun (Erdem Uyguner)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 16 May 2008 17:14:33 +0300
> From: "Erdem Uyguner" <erdem.linux_at_gmail.com>
> Subject: [Linux-programlama] PHPMailer hakkýnda sorun
> To: linux-programlama_at_liste.linux.org.tr
> Message-ID:
> <f4807a360805160714o14ca47bdi5be464174a3d471c_at_mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-9"
>
> Merhabalar;
>
> PHP mailer ile bir form mail uygulamasý yaptým ancak mesaj gönderildikten
> sonra hata raporu gibi bir takým yazýlar bastýrýyor safaya...
>
> SMTP -> FROM SERVER: 220 mail.atakweb.com ESMTP Merak 8.3.8; Fri, 16 May
> 2008 15:41:28 +0300 SMTP -> FROM SERVER: 250-mail.atakweb.com Hello pc [
> 85.109.76.40], pleased to meet you. 250-ENHANCEDSTATUSCODES 250-SIZE
> 250-EXPN 250-ETRN 250-ATRN 250-DSN 250-CHECKPOINT 250-8BITMIME 250-AUTH
> CRAM-MD5 DIGEST-MD5 LOGIN PLAIN 250-AUTH=LOGIN 250-STARTTLS 250 HELP SMTP ->
> FROM SERVER: 250 2.1.0 ... Sender ok SMTP -> FROM SERVER: 250 2.1.5 ...
> Recipient ok SMTP -> FROM SERVER: 354 Enter mail, end with "." on a line by
> itself SMTP -> FROM SERVER: 250 2.6.0 818 bytes received in 00:00:01;
> Message id WRF92229 accepted for delivery SMTP -> FROM SERVER: 221 2.0.0
> mail.atakweb.com closing connection
> Mesajýnýz iletilmiþtir.
>
>
> bu mesajý vermemesi için ne yapmam gerekli bir fikri olan varmý?
> aþaðýda sayfanýn kodlarýnýda veriyorum...
>
> <?php
> session_start();
> ?>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
> <title>Form Mail</title>
> <link href="css/validate.css" rel="stylesheet" type="text/css" />
> <script type="text/javascript" src="js/mootools.js"></script>
> <script type="text/javascript" src="js/validate.js"></script>
> </head>
> <body>
> <?php
> if (empty($_POST)) {
> //--- tarih fonksiyonu ---//
> function tarih($zaman) {
> $gunler = array( "Pazar", "Pazartesi", "Sal&#305;",
> "&Ccedil;arsamba", "Per&#351;embe", "Cuma", "Cumartesi");
> $aylar =array( NULL, "Ocak", "&#350;ubat", "Mart", "Nisan",
> "May&#305;s", "Haziran", "Temmuz", "A&#287;ustos", "Eyl&uuml;l", "Ekim",
> "Kas&#305;m", "Aral&#305;k");
> $tarih = date("d",$zaman)." ".$aylar[date("n",$zaman)]."
> ".date("Y",$zaman)." ".$gunler[date("w",$zaman)]." ".date("H:i",$zaman);
> return $tarih;
> }
> $zaman = time();
> $tarih = tarih($zaman);
> //--- tarih fonksiyonu sonu ---//
> ?>
> <form id='myform' method='POST'>
> <input type="hidden" name="ip_no" value="<?php echo
> getenv("REMOTE_ADDR");?>" />
> <input type="hidden" name="tarih" value="<?php echo "$tarih";?>" />
>
> <p><label>&#304;sim:</label><input type="text" name="isim"
> title="L&uuml;tfen ad&#305;n&#305;z&#305; yaz&#305;n&#305;z."
> class="required" /></p>
>
> <p><label>E-Mail:</label><input type="text" name="e_mail" title="L&uuml;tfen
> ge&ccedil;erli bir mail adresi yaz&#305;n&#305;z." class="required email"
> /></p>
>
> <p><label>Telefon:</label><input type="text" name="telefon"
> title="L&uuml;tfen ge&ccedil;erli bir telefon numaras&#305;
> yaz&#305;n&#305;z." class="required number" /></p>
>
> <p><label>Konu:</label><input type="text" name="konu" title="L&uuml;tfen
> ad&#305;n&#305;z&#305; yaz&#305;n&#305;z." class="required" /></p>
>
> <p><label>Mesaj:</label><textarea name="mesaj" title="L&uuml;tfen bize
> iletmek istedi&#287;iniz mesaj&#305;n&#305;z&#305; yaz&#305;n&#305;z."
> class="required" cols="35" rows="5"></textarea></p>
>
> <p><label>&nbsp;</label><img src="securimage_show.php?sid=<?php echo
> md5(uniqid(time())); ?>" id="image">
> <a href="#" onclick="document.getElementById('image').src =
> 'securimage_show.php?sid=' + Math.random(); return false">Resmi
> Yenile</a></p>
>
> <p><label>G&uuml;venlik Kodu:</label><input type="text" name="code"
> title="L&uuml;tfen &uuml;st tarafta g&ouml;rd&uuml;&#287;&uuml;n&uuml;z
> rakam ve harfleri yaz&#305;n&#305;z." class="required" /></p>
>
> <p><label>&nbsp;</label><input type="submit" name="button" id="button"
> value="Submit" class="submit" /></p>
> </form>
>
> <script type="text/javascript">
> window.addEvent('domready', function(){
> var myFormValidation = new Validate('myform',{
> errorClass: 'red'
> });
> });
> </script>
>
> <?php
> } else { //form is posted
> include("securimage.php");
> $img = new Securimage();
> $valid = $img->check($_POST['code']);
>
> $ip_no = $_POST['ip_no'];
> $tarih = $_POST['tarih'];
> $isim = $_POST['isim'];
> $e_mail = $_POST['e_mail'];
> $telefon = $_POST['telefon'];
> $konu = $_POST['konu'];
> $mesaj = $_POST['mesaj'];
>
> $mail_body="
> <p><label><b>&#304;sim :</b></label>".$isim."</p>".
> "<p><label><b>E-Mail :</b></label>".$e_mail."</p>".
> "<p><label><b>Telefon :</b></label>".$telefon."</p>".
> "<p><label><b>Konu :</b></label>".$konu."</p>".
> "<p><label><b>Mesaj :</b></label>".$mesaj."</p>".
> "<p>Bu mesaj <b>".$tarih."</b> tarihinde <b>".$ip_no."</b> IP numaral&#305;
> kullan&#305;c&#305;dan g&ouml;nderilmi&#351;tir.</p>";
>
> if($valid == true) {
>
> require 'class.phpmailer.php';
> require 'class.pop3.php';
>
> $pop = new POP3();
> $pop->Authorise('mail.eksenmedyagrup.com', 110, 25, 'xxxxxx_at_xxxxxxxxx.com',
> 'xxxxxxxxxxxx', 1);
>
>
> $mail = new PHPMailer();
> $mail->CharSet = 'ISO-8859-9';
> $mail->IsSMTP();
> $mail->SMTPDebug = 2;
> $mail->IsHTML(true);
>
> $mail->Host = 'mail.xxxxxxxxxxxxxxx.com';
> $mail->From = 'xxxxx_at_xxxxxxxxxx.com';
> $mail->FromName = 'Erdem Uyguner';
> $mail->Subject = 'Form Bilgileri';
> $mail->Body = iconv("UTF-8","ISO-8859-9",$mail_body);
> $mail->AddAddress('xxxxx_at_xxxxxxxxxxxxxxx.com', 'Erdem');
>
> if (!$mail->Send()){
> # echo $mail->ErrorInfo;
> }
> else{
> #echo "OK";
> }
> echo "Mesaj&#305;n&#305;z iletilmi&#351;tir.";
> } else {
> echo "<center>Sorry, the code you entered was invalid. <a
> href=\"javascript:history.go(-1)\">Go back</a> to try again.</center>";
> }
> }
> ?>
> </body>
> </html>
>
> --
> http://dokumantasyon.org/blog/
> -------------- sonraki bölüm --------------
> Bir HTML eklentisi temizlendi...
> URL: http://liste.linux.org.tr/pipermail/linux-programlama/attachments/20080516/3b276d81/attachment-0001.htm
>
> ------------------------------
>
> _______________________________________________
> Linux-programlama mailing list
> Linux-programlama_at_liste.linux.org.tr
> http://liste.linux.org.tr/mailman/listinfo/linux-programlama
>
>
> Son: Linux-programlama Toplu Mesajý, Sayý 44, Konu 30
> *****************************************************
>
_______________________________________________
Linux-programlama mailing list
Linux-programlama_at_liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama
Received on Sun 18 May 2008 - 11:15:11 EEST

---------

Bu arsiv hypermail 2.2.0 tarafindan uretilmistir.