Top.Mail.Ru
Ответы
Аватар пользователя
6лет
Изменено
Аватар пользователя
Аватар пользователя
Аватар пользователя
Программирование
+4

Проблемка с PHPMailer (не пашет)

После обновления версии PHP на сервере перестала уходить почта через SMTP при отправке тестового письма плагин выдает: Following error occurred when attempting to send test email:
SMTP connect() failed. https:// github.com/PHPMailer/PHPMailer/wiki/Troubleshooting SMTP ERROR: Failed to connect to server: (0)SMTP connect() failed.
в php.ini имеем:
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
; sendmail_from = me@example.com

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = /usr/sbin/sendmail -t -i

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = On

; The path to a log file that will log all mail() calls. Log entries include
; the full path of the script, line number, To address and headers.
;mail.log =

Может быть надо тут что-топоменять, куда смотреть?

По дате
По рейтингу
Аватар пользователя
Новичок
6лет

PHP-движок считает, что
1. у вас SMTP сервер поднят на том-же сервере, где крутится сам PHP
2. У Вас UNIX, и по пути /usr/sbin/sendmail лежит программа отправки почты
И еще:
3. Я не вижу настройки логина / пароля

Вы (вернее PHP) не может залогиниться на SMTP сервере. Поднимите (если есть возможность) старый конфиг и посмотрите, что там было в качестве сервера и порта.

Аватар пользователя
Мастер
6лет

пиши свой E-mail помогу