Title: Test Failed with Error
Last modified: August 31, 2016

---

# Test Failed with Error

 *  Resolved [etellewyn](https://wordpress.org/support/users/etellewyn/)
 * (@etellewyn)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/test-failed-with-error/)
 * When trying to send a test email with the plugin on a site hosted at BlueHost
   I get the following unhelpful error: Test Failed with Error. (no indication of
   which error)
    In the server logs I was able to locate the exact error, it is [
   28-Jan-2016 15:39:25 UTC] PHP Warning: curl_error() expects parameter 1 to be
   resource, null given in /home1/siamorec/public_html/clazmic/wp-content/plugins/
   postmark-approved-wordpress-plugin/postmark.php on line 386
 * Any idea what is causing this and how we solve it?
 * [https://wordpress.org/plugins/postmark-approved-wordpress-plugin/](https://wordpress.org/plugins/postmark-approved-wordpress-plugin/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [lakepointe](https://wordpress.org/support/users/lakepointe/)
 * (@lakepointe)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/test-failed-with-error/#post-7000528)
 * Hi etellewyn,
 * I was having the same issue and realized I was grabbing the wrong API tokens.
   There are actually 2 locations they put those…one global token for the account
   itself and then they have an API token for the individual “servers” you can create.
   If you select your server another navigation will show up below the main one 
   with more options. Look for the link labeled credentials and you will see “Server
   API token”. This is the one you put in WordPress settings under the postmarkapp
   plugin. Once I put the correct token in I was able to send a test message through
   the settings page.
 * Hope this helps.
 *  Thread Starter [etellewyn](https://wordpress.org/support/users/etellewyn/)
 * (@etellewyn)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/test-failed-with-error/#post-7000530)
 * Yes thank you! That’s exactly what it was. In case anybody else runs into this,
   the other (dumber) thing I did on another site was use a different “from” email
   than the one verified in postmark. That also resulted in a “failed with error”
   message. Really wish the error was specified in admin…
 * Anyway thanks lakepointe!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Test Failed with Error’ is closed to new replies.

 * ![](https://ps.w.org/postmark-approved-wordpress-plugin/assets/icon.svg?rev=2721461)
 * [ActiveCampaign Postmark for Wordpress](https://wordpress.org/plugins/postmark-approved-wordpress-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/postmark-approved-wordpress-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/postmark-approved-wordpress-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/postmark-approved-wordpress-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/postmark-approved-wordpress-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/postmark-approved-wordpress-plugin/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [etellewyn](https://wordpress.org/support/users/etellewyn/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/test-failed-with-error/#post-7000530)
 * Status: resolved