phplist-docker
phplist-docker copied to clipboard
Error sending email to [email protected] SMTP connect() failed.
Connect fails from php.
Connected directly from the container and it can talk to mailhog but php does not.
root@6c74662b8030:/var/www/phpList3# ./busybox telnet mailhog 25 Connected to mailhog 220 mailhog.example ESMTP MailHog HELO 250 Hello MAIL FROM [email protected] 550 Invalid syntax in MAIL command MAIL 550 Invalid syntax in MAIL command MAIL FROM: [email protected] 250 Sender [email protected] ok RCPT TO: [email protected] 250 Recipient [email protected] ok DATA 354 End data with <CR><LF>.<CR><LF> HELLO! . 250 Ok: queued as [email protected]
Check your setting for PHPMAILERHOST and PHPMAILERPORT