Zintegrowałem go z bazą danych i działa dobrze lecz nie wysyła wiadomości na skrzynki googla.
Czyli jak wysyłam na interie i na inne jest okej ale na gmaila nic nie dochodzi.
Czy może oni coś blokuja? Czy ja zrobiłem coś źle w skrypcie?
<?php echo '<html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> </head> <body>'; require_once("baza.php"); require_once("phpmailer/class.phpmailer.php"); $mail = new PHPMailer(); $mail->PluginDir = "phpmailer/"; $mail->Mailer = "smtp"; $mail->Host = "www.poczta.fm"; $mail->Port = 587; $mail->SMTPKeepAlive = true; $mail->SMTPAuth = true; $mail->Username = "**********"; $mail->Password = "**********"; $mail->SetLanguage("pl", "phpmailer/language/"); $mail->CharSet = "UTF-8"; $mail->ContentType = "text/html"; $mail->From = "**************"; $mail->FromName = "Arek"; $mail->Subject = "Tytuł wiadomości"; $mail->Body = 'To jest nowa testowa treść, '; { $mail->AddAddress($rekord['Email']); if($mail->Send()) else $mail->ClearAddresses(); } $mail->SmtpClose(); ?>