• 27-10-2015, 11:28:03
    #1
    Merhaba mail smtp hersey dogru ama maıl gıtmıyor debug cıktısı asagıdadır nedır sorun acaba?

    SMTP -> FROM SERVER:220-momos.sunucuadi.com ESMTP Exim 4.86 #2 Tue, 27 Oct 2015 11:25:43 +0300 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.
    SMTP -> FROM SERVER: 250-momos.sunucuadi.com Hello www.domainadi.com.tr [5.2.84.233] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP
    SMTP -> FROM SERVER:220 TLS go ahead
    SMTP -> FROM SERVER: 250-momos.sunucuadi.com Hello www.domainadi.com.tr [5.2.84.233] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250 HELP
    SMTP -> FROM SERVER:250 OK
    SMTP -> FROM SERVER:250 Accepted
    SMTP -> FROM SERVER:354 Enter message, ending with "." on a line by itself
    SMTP -> FROM SERVER:250 OK id=1ZqzZf-001ba8-Mz
    SMTP -> FROM SERVER:221 momos.sunucuadi.com closing connection
    Sent
  • 27-10-2015, 11:33:11
    #2
    Üyeliği durduruldu
    momos.sunucuadi.com

    hata burada burası ya smtp.site.com yada localhost olması lazım
  • 27-10-2015, 11:39:05
    #3
    Bisayfa adlı üyeden alıntı: mesajı görüntüle
    momos.sunucuadi.com

    hata burada burası ya smtp.site.com yada localhost olması lazım
    orayı gırdıgım bır bolum yokkı benım smtp kodlarım asagıda verıyorum

    <?php
    
    include 'class.phpmailer.php'; //PHPMailer sinifimizi import ettik
    $mail = new PHPMailer(); 
    
    $from = "info@alicimailim.com.tr";  //Bu dort satirda formdan gelen verileri degiskenlere aktardik   
    $to = "test@siteadim.com.tr";
    $subject = "konu";
    $mail_text = "miçerik";
    
    $mail->IsSMTP(); //Maili gonderecegimiz yolu belirledik
    $mail->SMTPDebug = 2; //Debug islemi. 1 degeri hata ve mesaj icinken 2 degeri ile sadece mesaj olusturuluyor 
    $mail->SMTPAuth = true; //SMTP kimlik dogrulamayi etkinlestirdik
    $mail->Host = 'mail.siteadim.com.tr';
    $mail->Port = 587;
    $mail->SMTPSecure = 'tls';
    $mail->CharSet = 'UTF-8'; //Dil ayarlari icin UTF-8 i kullaniyoruz.
    $mail->Username = $from; //mailin gonderilecegi adres
    $mail->Password = 'mailşifresi'; //mailin gonderildigi adresin sifresi
    $mail->SetFrom($mail->Username, $from);
    $mail->Subject = $subject; //konu
    $mail->AddAddress($to); //mailin gidecegi adres
    $mail -> MsgHTML($mail_text); //mailin icerigi
    
    
    //Asagidaki kod blogunda mailin gonderilip gonderilmedigini kontrol ediyoruz. 
    
    if(!$mail->Send())
    
    {
        echo "Mailer Error: ".$mail->ErrorInfo;
    }
    else
    {
        echo "Sent";
    }
    
    ?>


    debug: 0 veya 1 yap diyecek arkadaşlar çıktıyı gormek ıcın aktıf ettım yapınca send dıyor evet ama maıl dusmuyor.
  • 27-10-2015, 11:42:30
    #4
    Üyeliği durduruldu
    $mail->Host = 'mail.siteadim.com.tr';

    bu kısmı önce smtp.site.com şeklinde deneyin
    olmazsa aynı yeri localhost olarak deneyin
  • 27-10-2015, 12:07:24
    #5
    malesef sonuc değişmedi ama sunucu mail hostum zaten smtp. değil mail.siteadi.com orda problem yok ama nerde var onuda bılmıyorum ..