Я в курсе дела wabmaster в студенческой ассоциации и получил рассылку. Однако на следующий день после этого он больше не будет работать. Я не могу найти никаких реальных кодов ошибок в журнале smtp, и хост говорит, что он не блокирует эту службу. Это журнал:Joomla smtp не может подключиться к хосту
[06-Feb-2017 14:34:27 Europe/Amsterdam] Connection: opening to smtp.googlemail.com:587, timeout=300, options=array ( ) [06-Feb-2017 14:34:27 Europe/Amsterdam] Connection: opened [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "" [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "220-sh3.hosty.nl ESMTP Exim 4.87 #1 Mon, 06 Feb 2017 14:34:27 +0100 " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "220-sh3.hosty.nl ESMTP Exim 4.87 #1 Mon, 06 Feb 2017 14:34:27 +0100 " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "220-We do not authorize the use of this system to transport unsolicited, " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "220-sh3.hosty.nl ESMTP Exim 4.87 #1 Mon, 06 Feb 2017 14:34:27 +0100 220-We do not authorize the use of this system to transport unsolicited, " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "220 and/or bulk e-mail. " [06-Feb-2017 14:34:27 Europe/Amsterdam] SERVER -> CLIENT: 220-sh3.hosty.nl ESMTP Exim 4.87 #1 Mon, 06 Feb 2017 14:34:27 +0100 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. [06-Feb-2017 14:34:27 Europe/Amsterdam] CLIENT -> SERVER: EHLO example.com [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "" [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-SIZE 52428800 " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-8BITMIME " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 250-8BITMIME " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-PIPELINING " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-STARTTLS " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250 HELP " [06-Feb-2017 14:34:27 Europe/Amsterdam] SERVER -> CLIENT: 250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP [06-Feb-2017 14:34:27 Europe/Amsterdam] CLIENT -> SERVER: STARTTLS [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "" [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "220 TLS go ahead " [06-Feb-2017 14:34:27 Europe/Amsterdam] SERVER -> CLIENT: 220 TLS go ahead [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP Error: Could not connect to SMTP host. [06-Feb-2017 14:34:27 Europe/Amsterdam] CLIENT -> SERVER: QUIT [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "" [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "221 sh3.hosty.nl closing connection " [06-Feb-2017 14:34:27 Europe/Amsterdam] SERVER -> CLIENT: 221 sh3.hosty.nl closing connection [06-Feb-2017 14:34:27 Europe/Amsterdam] Connection: closed [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP Error: Could not connect to SMTP host. [06-Feb-2017 14:34:27 Europe/Amsterdam] Connection: opening to smtp.googlemail.com:587, timeout=300, options=array ( ) [06-Feb-2017 14:34:27 Europe/Amsterdam] Connection: opened [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "" [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "220-sh3.hosty.nl ESMTP Exim 4.87 #1 Mon, 06 Feb 2017 14:34:27 +0100 " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "220-sh3.hosty.nl ESMTP Exim 4.87 #1 Mon, 06 Feb 2017 14:34:27 +0100 " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "220-We do not authorize the use of this system to transport unsolicited, " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "220-sh3.hosty.nl ESMTP Exim 4.87 #1 Mon, 06 Feb 2017 14:34:27 +0100 220-We do not authorize the use of this system to transport unsolicited, " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "220 and/or bulk e-mail. " [06-Feb-2017 14:34:27 Europe/Amsterdam] SERVER -> CLIENT: 220-sh3.hosty.nl ESMTP Exim 4.87 #1 Mon, 06 Feb 2017 14:34:27 +0100 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. [06-Feb-2017 14:34:27 Europe/Amsterdam] CLIENT -> SERVER: EHLO example.com [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "" [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-SIZE 52428800 " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-8BITMIME " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 250-8BITMIME " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-PIPELINING " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250-STARTTLS " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS " [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "250 HELP " [06-Feb-2017 14:34:27 Europe/Amsterdam] SERVER -> CLIENT: 250-sh3.hosty.nl Hello sh3.hosty.nl [185.69.233.117] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP [06-Feb-2017 14:34:27 Europe/Amsterdam] CLIENT -> SERVER: STARTTLS [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "" [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "220 TLS go ahead " [06-Feb-2017 14:34:27 Europe/Amsterdam] SERVER -> CLIENT: 220 TLS go ahead [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP Error: Could not connect to SMTP host. [06-Feb-2017 14:34:27 Europe/Amsterdam] CLIENT -> SERVER: QUIT [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $data is "" [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP -> get_lines(): $str is "221 sh3.hosty.nl closing connection " [06-Feb-2017 14:34:27 Europe/Amsterdam] SERVER -> CLIENT: 221 sh3.hosty.nl closing connection [06-Feb-2017 14:34:27 Europe/Amsterdam] Connection: closed [06-Feb-2017 14:34:27 Europe/Amsterdam] SMTP Error: Could not connect to SMTP host.
Решение отключить почты SMTP не работает, потому что с phpmailing мы можем только отправить 1 письмо в час.
Это действительно поможет, если вы прочтете документацию. 'SMTPDebug = 4' излишне зашумлен для этой проблемы (у вас нет проблемы с подключением). У вас проблема с TLS, которая широко освещена в [руководстве по устранению неполадок] (https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting). Тот факт, что ваш вывод ошибки не содержит ссылки на него, говорит мне, что вы используете старую, возможно уязвимую версию PHPMailer, поэтому [получите последнюю версию] (https://github.com/PHPMailer/PHPMailer) , – Synchro
@Synchro Я загрузил резервную копию и на своем локальном хосте это работает – miquel09
Правильно, потому что ваша локальная конфигурация TLS не сломана. Исправьте TLS на вашем сервере, и PHPMailer сможет работать. – Synchro