Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postmark Heroku Addon #1

Open
hatpick opened this issue Oct 24, 2016 · 3 comments
Open

Postmark Heroku Addon #1

hatpick opened this issue Oct 24, 2016 · 3 comments

Comments

@hatpick
Copy link

hatpick commented Oct 24, 2016

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
Copy link
Owner

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
Copy link
Author

hatpick commented Oct 24, 2016

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

@glennreyes
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants