No it goes in library.js since it's a server side hook. And you need to add the corresponding entry in plugin.json.
// library.js myPlugin.filterMiddlewareRender = async (hookData) => { hookData.templateData.user = await user.getUserData(hookData.req.uid); return hookData; }; //plugin.json "hooks": { "filter:middleware.render": "filterMiddlewareRender" ... }Email confirmation doesnt work
-
You need
sendmail
installed for default email settings -
@frissdiegurke How do I do that?
-
Assuming you're using ubuntu:
sudo apt-get install sendmail
Keep in mind that this will be a private mailing server, so some email provider might block incoming mails from you. I'm not very into this stuff, so not sure about details. -
@pichalite I just registred for a free trial with mailjet how do i integrated or configure the plugin i just installed for them?
-
@pichalite I just checked their integration page https://www.mailjet.com/integrations they dont have nodebb listed in there
-
@pichalite I am afraid that i dont see the option you are talking about
-
@pichalite Got it I didnt know that i have to restart nodebb to activate the plugin.
it is working now thanks
-
@pichalite everything seem to be working but i am not getting confirmation emails. what could be the problem?
-
Does your mailjet account list any received emails (https://app.mailjet.com/stats )?
-
@frissdiegurke it is working now
I just had to validate my domain with mailjet. The Nodebb installed and running on 0.0.0.0:4567 but the confirmation link sent without specifying the port #. How do i fix that?
-
Check your config.json for the
url
property. -
@pichalite What if I want to use a different email marketing system than the ones you listed such iContact or Aweber for example, how do i do the integration?