• Resolved Toink22

    (@toink22)


    Hi,

    Our messages are failed lately. When I check the email log. This is what I see on the server response:

    { “code”: 422, “message”: “cURL error 28: Resolving timed out after 5001 milliseconds”, “errors”: null }

    When I cliked the resend button, the messages will be sent. How can I fix this issue?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Support Ibrahim Sharif

    (@ibrahimsharif)

    Hello @toink22,

    A very common and highly effective solution for this specific timeout error is to extend the default HTTP request timeout within WordPress. This gives your site more wiggle room and time to successfully establish a connection and communicate with your SMTP service provider.

    function __extend_http_request_timeout( $timeout ) {
    return 60;
    }
    add_filter( 'http_request_timeout', '__extend_http_request_timeout' );

    We set it to 60 seconds whereas WordPress default is 5 seconds 5000 milliseconds.

    Please add the snippet in your WordPress via the theme’s functions.php file or by using a plugin, and let us know the update.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.