SMTP Error: Could not connect to SMTP host. There has been a mail error SMTP Error: Could not connect to SMTP host. mail sent
Wygooglowałem itp i nic nie pomaga.
tak wygląda konfiguracja:
<?php require("phpmailer/class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->From = "witaszekl@wp.pl.pl"; //adres naszego konta $mail->FromName = "phpMailer tester";//nagłówek From $mail->Host = "smtp.wp.pl";//adres serwera SMTP $mail->Mailer = "smtp"; $mail->Username = "witaszekl";//nazwa użytkownika $mail->Password = "****";//nasze hasło do konta SMTP $mail->SMTPAuth = true; $SMTPDebug = true; $mail->SetLanguage("pl", "mail/language/"); $mail->Subject = "Mail testowy";//temat maila // w zmiennš $text_body wpisujemy treœć maila $text_body = "Czeœć, chyba phpMailer działa \n\n"; $text_body .= "Na zawsze Twój, \n"; $text_body .= "PHPMailer"; $mail->Body = $text_body; // adresatów dodajemy poprzez metode 'AddAddress' $mail->AddAddress("uki0008@gmail.com"); if(!$mail->Send()) // Clear all addresses and attachments $mail->ClearAddresses(); $mail->ClearAttachments(); ?>