Bu hata iletisine sahibim. Lütfen bana yardım eder misiniz ?Phpmailer SMTP ERROR vererek
Benim email.php;
<?php
header('Content-Type: text/html; charset=utf-8');
require 'PHPMailerAutoload.php';
$phpmailer = new PHPMailer;
$phpmailer->isSMTP();
$phpmailer->Host = 'mail.coffeewritingcontent.com';
$phpmailer->SMTPAuth = true;
$phpmailer->Username = '[email protected]';
$phpmailer->Password = 'mypassword';
$phpmailer->SMTPSecure = 'tls';
$phpmailer->Port = '587';
$phpmailer->From = '[email protected]';
$phpmailer->FromName = $_POST['name'];
$phpmailer->AddReplyTo($_POST['email'], $_POST['name']);
$phpmailer->addAddress('[email protected]', 'İletişim Formu');
$phpmailer->isHTML(true);
$phpmailer->Subject = 'İletisim formu mesajı';
$phpmailer->Body = "isim: " . $_POST['name'] . "\r\n\r\nMesaj: " . stripslashes($_POST['message']);
$phpmailer->CharSet = 'UTF-8';
$phpmailer->SMTPDebug = 4;
if(!$phpmailer->send()) {
echo 'Mail gonderilemedi. Hata: ' . $phpmailer->ErrorInfo;
exit;
}
echo 'Mail gonderildi.';
?>
benim hatam;
2016-03-26 21:52:59 Connection: opening to mail.coffeewritingcontent.com:587, timeout=10, options=array () 2016-03-26 21:53:09 SMTP ERROR: Failed to connect to server: Connection timed out (110) Mail gonderilemedi. Error: Language string failed to load: connect_host
Fernando ile php kütüphanesi gerekli emin olun, ben zaten klasörünün içindeki phpmailer zip bu dosyaları var. PHPMailerAutoload.php class.phpmailer.php class.pop3.php class.smtp.php Ama dediğim gibi işe yaramıyor ve ben yazdığı gibi ben bu hatayı yaşıyorum. barındırma hizmetimi kullanıyorum, xamp sunucusunu kullanmadım. Umarım bana yardım edebilirsin. – erenesto
Eski bir örnek gönderdiniz ve PHPMailer'in eski bir sürümünü kullanıyorsunuz. Yapma. – Synchro