glennreyes / parse-server-postmark-adapter

Used to send Parse Server password reset and email verification emails through Postmark
MIT License
0 stars 4 forks source link

Postmark Heroku Addon #1

Open hatpick opened 8 years ago

hatpick commented 8 years ago

Is there a special trick to make it work on the heroku? I have the following and it doesn't send any emails to my new users:

  .....
  appName: process.env.APP_NAME,
  publicServerURL: process.env.PUBLIC_SERVER_URL,
  verifyUserEmails: true,
  emailVerifyTokenValidityDuration: 2 * 60 * 60,
  preventLoginWithUnverifiedEmail: true,
  emailAdapter: PostmarkAdapter({
    apiKey: process.env.POSTMARK_API_KEY,
    fromAddress: process.env.SENDER_EMAIL,
  })
  .....
glennreyes commented 8 years ago

Is there a special trick to make it work on the heroku? @hatpick What do you mean by that? Probably you want to set some environment variables on your HEROKU to set your:

  • APP_NAME
  • PUBLIC_SERVER_URL
  • POSTMARK_API_KEY
  • SENDER_EMAIL

Should just work like any other Parse mail adapters ;)

hatpick commented 8 years ago

@glennreyes I have all of these set but yet no email is being sent, I'm using latest parse-server.

glennreyes commented 8 years ago

Haven't tested this with latest parse-server, it's been a while when I wrote this. Probably specifying peerDeps was a good idea 😅 I would be really grateful for a PR fixing this with current parse-server!