demirbey adlı üyeden alıntı: mesajı görüntüle
SSL kaldırınca bu sefer de aşağıdaki hatayı veriyor. O nedenle SMTPSecure kullanmak zorundayım.
birde böyle deneye bilir misin hata olabilir PHP ile uzun zamandır uğraşmıyorum
require('phpmailer/PHPMailerAutoload.php'); $mail = new PHPMailer();$mail->IsSMTP(true);$mail->Host = 'smtp.yandex.com'; $mail->SMTPAuth= true;$mail->Username='sizinadres@yandex.com';$mail->Password='passwordyandex';$mail->Port = 465; $mail->SMTPDebug = 2; $mail->SMTPSecure = 'ssl';$mail->SetFrom('sizinadres@yandex.com', 'Name');$mail->AddAddress('xxx@yandex.com', 'HisName');$mail->Subject = 'Subject';$mail->Subject = "subject";$mail->Body    = "html mesej <b>in bold!</b>";$mail->AltBody = "This is the body in plain text for non-HTML mail    clients";if(!$mail->Send()) {echo 'Error : ' . $mail->ErrorInfo;} else {    echo 'Ok!!';}*