Forum Replies Created

Viewing 1 replies (of 1 total)
  • here is my version of fixing it as $curl is not available here.

    --- postmark.php.origin 2015-05-19 22:34:44.728346590 -0600
    +++ postmark-approved-wordpress-plugin/postmark.php     2014-06-10 14:39:08.000000000 -0600
    @@ -286,8 +286,8 @@
    
         $response = pm_send_mail($postmark_headers, $email);
    
    -    if ($response !== true){
    -       return "Test Failed with Error ".$response['body'];
    +    if ($response === false){
    +       return "Test Failed with Error ".curl_error($curl);
         } else {
            return "Test Sent";
            }
    @@ -306,8 +306,8 @@
            if($response['response']['code'] == 200) {
                    return true;
            } else {
    -               return $response;
    +               return false;
            }
     }
Viewing 1 replies (of 1 total)