julianlam / nodebb-plugin-emailer-postmark

An emailer plugin for NodeBB using Postmark as a third party service
0 stars 1 forks source link

Setting API Key #1

Open maximus321 opened 9 years ago

maximus321 commented 9 years ago

I'm trying to setup this module to send mail with my Postmark account.

When I put my key in the "installed plugin, Postmark" inputbox and click save, the page reload and after the key is no longer there. Not sure if the key is set correctly after that or if something went wrong.

Trying to send mail, I get this error 19/3 20:42 [6433] - warn: [emailer.postmark] Unable to send test email to uid 1!! 19/3 20:42 [6433] - error: [emailer.postmark] Bad or missing Server API token.

Is it possible to hardcode my API key in index.js in order to debug what is the problem? I feel like updating the key in the Admin panel doesn't update the key in my config, Thanks

Header should contain this information http://developer.postmarkapp.com/developer-api-overview.html#authentication

maximus321 commented 9 years ago

I solved the issue by hardcoding my API key in index.js Postmark = require('postmark')(Meta.config['postmark:apiKey']), Postmark = require('postmark')("MYKEYHER"]),

Seems like the update key plugin is not working properly, but the rest seems fine :)

julianlam commented 9 years ago

Hey @maximus321 -- most likely this plugin needs to be updated for v0.6.0+ compatibility. Postmark's API costs money, right? Any chance I could borrow your API key for testing?

maximus321 commented 9 years ago

Hey julian, I see you everywhere :) you can get a free API key, they give you a trial that last a long time, still using free credit on my side here

maximus321 commented 9 years ago

Let me know if I can test things and help on the plugin. I just started with nodeBB but I have some web skills if needed ;)