• Resolved bradclarke365

    (@bradclarke365)


    Hi,

    I recently migrated to php7 and can no longer connect to smtp.

    Here is the error the test email produces:

    CLIENT -> SERVER: EHLO https://www.my-domain.com
    CLIENT -> SERVER: STARTTLS
    SMTP Error: Could not connect to SMTP host.CLIENT -> SERVER: QUIT
    SMTP ERROR: QUIT command failed:
    SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

    In between “smtp error: quit” and “smtp connect failed” I have a bunch of diamond shaped question marks. Not sure if it’s relevant.

    So far I have re entered all the credentials, changed the credentials to new credentials, uninstalled then reinstalled with new credentials, nothing has worked.

    Thoughts?

    Thanks

    Brad

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Brad @bradclarke365.

    To clarify, have you upgraded PHP version on the server where everything was working just fine and, after the upgrade, it stopped?

    Thread Starter bradclarke365

    (@bradclarke365)

    Hey Alex,

    Correct, everything was fine on php5.6 and now that I have moved to php7 it’s creating that error. I built a new php7 server from scratch and migrated to it, if it makes a difference.

    You helped me a few weeks back and updated easy wp smtp to allow it to send from an alternative email. It was working great!

    Thanks

    Brad

    Hey Brad @bradclarke365, sure I remember you ??

    I think your issue is not plugin-related, but rather your server-config related. For example, in order for PHP mail function to work, here are the requirements:

    https://php.net/manual/en/mail.requirements.php

    I’m not a server expect though, so this is just a wild guess.

    PS: Sorry for late reply, been busy with some offline stuff.

    Thread Starter bradclarke365

    (@bradclarke365)

    Thanks Alex,

    I’ll take a look and come back if I need further assistance.

    Thanks

    Brad

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Migrating to PHP7, cannot connect error’ is closed to new replies.