Support » Plugin: Mailgun for WordPress » Didn't make it work

  • Tried to use with WordPress 4.2.2 and 4.4.2, with API and SMTP methods. Got error every time. E.g. API method returned “Mailgun HTTP API Test Failure” therefore I had to change to another provider.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Ditto. But actually goes through and MailGun logs show nothing weird. It must be something in the plugin that doesn’t parse the response correctly.

    I’ve debugged my issue. The network between my WordPress web server and the MailGun API is very slow. The default timeout is 5 seconds, which I think is WAY TOO SHORT anyway. You can increase the timeout value in wp-mail.php, around line 250:

    $data = array(
    ‘timeout’ => 30,
    ‘body’ => $payload,
    ‘headers’ => array(‘Authorization’ => ‘Basic ‘ . base64_encode( “api:{$apiKey}”),
    ‘content-type’ => ‘multipart/form-data; boundary=’ . $boundary)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Didn't make it work’ is closed to new replies.