Support » Plugin: WP Mail SMTP by WPForms » WP-Mail Email contact is being refused

  • Resolved janiscarol88


    Attempts to connect the email to the server has failed on my site, using a multitude of settings, but nothing goes through even when it matches the settings recommended. I don’t know why and cannot correct it.

    WordPress: 5.2.2
    WordPress MS: No
    PHP: 5.6.30
    WP Mail SMTP: 1.5.1

    Mailer: smtp
    Constants: No
    ErrorInfo: SMTP connect() failed.
    Port: 587
    SMTPSecure: tls
    SMTPAutoTLS: bool(true)
    SMTPAuth: bool(true)

    OpenSSL: OpenSSL 1.0.1e-fips 11 Feb 2013
    SMTP Debug:
    2019-07-23 05:29:04 Connection: opening to, timeout=300, options=array (
    2019-07-23 05:29:08 Connection: Failed to connect to server. Error number 2. “Error notice: stream_socket_client(): unable to connect to (Connection refused)
    2019-07-23 05:29:08 SMTP ERROR: Failed to connect to server: Connection refused (111)
    2019-07-23 05:29:08 SMTP connect() failed.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Sanjeev Aryal


    Hi @janiscarol88,

    The error you’re seeing ‘Connection refused’ may be caused by your server blocking outbound requests (to prevent spam sending).

    Please contact your hosting support with that SMTP Debug output. They might need to review security rules for your account.


    Plugin Support Sanjeev Aryal


    Hi @janiscarol88 – We haven’t heard from you in about a week, so I’m going to go ahead and mark this ticket resolved. If you still have questions, though, please feel welcome to continue the conversation.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.