• 05-11-2013, 20:55:28
    #1
    	include 'class.phpmailer.php';
    	$mail = new PHPMailer();
    	$mail->IsSMTP();
    	$mail->SMTPAuth = true;
    	$mail->Host = 'smtp.gmail.com';
    	$mail->Port = 465;
    	$mail->SMTPDebug  =  2; 
    	$mail->Username = '******@gmail.com';
    	$mail->Password = '*********';
    	$mail->SetFrom('onalonr@gmail.com', "Anan");
    	$mail->AddAddress("pehaspe@hotmail.com", "Onur ÖNAL");
    	$mail->CharSet = 'UTF-8';
    	$mail->Subject = "New Order ";
    	$mail->MsgHTML('Deneme.');
    	$mail->Send();
    Bu kodlar ile SMTP mail göndermeyi deniyorum arkadaşlar,

    SMTP -> FROM SERVER:220-server.alvemar.com ESMTP Exim 4.80.1 #2 Tue, 05 Nov 2013 20:54:52 +0200 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. 
    SMTP -> FROM SERVER: 250-server.alvemar.com Hello static-106-46-210-31.sadecehosting.net [31.210.46.106] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP 
    SMTP -> ERROR: Password not accepted from server: 535 Incorrect authentication data 
    SMTP -> FROM SERVER:250 Reset OK 
    SMTP -> FROM SERVER:250 OK 
    SMTP -> FROM SERVER:550 SMTP AUTH is required for message submission on port 587 
    SMTP -> ERROR: RCPT not accepted from server: 550 SMTP AUTH is required for message submission on port 587 
    SMTP Error: The following recipients failed: pehaspe@hotmail.com
    Böyle bir hata alıyorum yardımcı olabilecek birisi var mı ?
  • 05-11-2013, 21:46:40
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Arkadaşım
        $mail = new PHPMailer();
        //$mail->IsSMTP();
        $mail->SMTPAuth = true;
        $mail->SMTPSecure = "tls";
        $mail->Host = 'smtp.gmail.com';
        $mail->Port = 465;
        $mail->SMTPDebug  =  2; 
        $mail->Username = '******@gmail.com';
        $mail->Password = '*********';
        $mail->SetFrom('onalonr@gmail.com', "Anan");
        $mail->AddAddress("pehaspe@hotmail.com", "Onur ÖNAL");
        $mail->CharSet = 'UTF-8';
        $mail->Subject = "New Order ";
        $mail->MsgHTML('Deneme.');
        $mail->Send();
    bu şekilde dene.
  • 05-11-2013, 22:31:59
    #3
    Oldu, teşekkürler.
  • 06-11-2013, 01:50:38
    #4
    Kimlik doğrulama veya yönetimden onay bekliyor.
    bknz: En basit haliyle SMTP mail gönderimi (phpmailer) & Basit Yapılı PHP İletişim Formu