-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
add emailAdapter to ENV variables #1277
Comments
If you are using a JSON config env var, you can configure your email adapter like this: "emailAdapter": {
"module": "parse-server-simple-mailgun-adapter",
"options": {
"fromAddress": "[email protected]",
"domain": "example.com",
"apiKey": "key-mykey"
}
} |
@drew-gross Set it as described but the logs for parse-server show the following when i try reset:
My json looks as follows:
|
did you add |
@flovilmart how would i do that? I did run This did however give warnings
|
ok you don't have a base package... how did you setup parse-server? |
i used the global install npm - g ! |
so install with |
i did, thanks. But still get the |
@flovilmart is there a reason that emailAdapter is not listed in the cli-definitions file? |
maybe because it's missing :) |
lol, could that be the reason why its not available? |
I'll post a fix or you could do it :) |
Thanks |
deff solved my problem, all working now! . Now i can just make use of
|
Thanks again. will wait on the update! |
Does it work with the emailAdapter option in --emailAdapter or config? |
works with option. As above. |
I'm having exact same problem. I migrated an app to digitalocean following this tuturial https://www.digitalocean.com/community/tutorials/how-to-migrate-a-parse-app-to-parse-server-on-ubuntu-14-04 Can you please tell me where to add emailAdapter. |
@junal The changes to the CLI-Definitions will be available in the next update. This will allow you then to set your eco file with the settings above. In-fact just check, cause i think it was already added.
|
@Cliffordwh Thanks! I have updated version of parse-server. So I added the ENV variable like this at /home/parse/ecosystem.json file
But i still get the error message..."error: Uncaught internal server error. Trying to send a reset password but no adapter is set undefined". What am I missing? |
Those changes have't been release yet on NPM. They will be part of the next update |
@flovilmart I have migrated an app from parse.com to Digitalocean server following their tutorial. Everything is working fine except few params are not working in the reset password and I'm not getting the verification email. Here's how my ecosystem.json looks like...
And here's how I'm getting email https://dl.dropboxusercontent.com/spa/e8jedo3lnl7g7wc/rcu187al.png it seems appName, publicServerURL and verifyUserEmails are not working. Do you know where I'm making mistake? Thanks |
You should define those properties from their env counterpart, the your PARSE_PUBLIC_SERVER_URL For now, we don't support (mistakenly) appName and verifyUserEmails from environment |
@junal Also ensure you are running 2.2.5. If you need to make use of appName urgently as i did, you can add it to the CLI-Definitions yourself as a env or wait for the next update. |
@Cliffordwh I updated to 2.2.5 and added appName in the cli-definitions as env i.e APP_NAME but no luck yet. Email still comes like this https://dl.dropboxusercontent.com/spa/e8jedo3lnl7g7wc/-7qtpyq1.png and where to add verifyUserEmails for verification email. |
@junal this because your json file is incorrect based on the sample you posted above. Can you share your latest file? |
|
Are you using PM2? You need to then first stop the process, pm2 kill , pm2 dump then restart. Then pm2 save. Just to ensure the latest json is added. See if that solves it. |
also APP_NAME should be PARSE_SERVER_APP_NAME, also you may wanna checkout 2.2.6 that was released today and that contains the fully features CLI + env variable compatibility |
@Cliffordwh @flovilmart Thank you so much!!! All working now. |
@Cliffordwh @flovilmart Suddenly, reset password and verification emails aren't working. It says "error: Uncaught internal server error. Trying to send a reset password but no adapter is set undefined" I didn't make any changes in the ENV. What could cause this issue? |
@junal we have lots of test cases that cover reset emails. Can you open a new issue with your configuration and a snippet of code that demonstrates the error? |
I get |
I just struggled with setting an mail adapter via an env variable for about 2 hours. I'm setting the env variables in a docker-compose. The important thing was to use double quotes for attributes. This is how it works:
The module needs to be installed before, I did this via a custom dockerfile as follows:
|
Is it possible to add the
emailAdapter
to the env variables? like we have done with push and files etc.I'm not making use of the
index.js
file from the sample. Firing off a json config. So not sure where to add the mailgun adapter with its vars.Thanks
The text was updated successfully, but these errors were encountered: