https://github.com/NodeBB/NodeBB/issues/9204
Can't edit nodebb-plugin-emailer-local settings
-
Going to the Emailer (Local) plugin page results in a 404:
Not Found You seem to have stumbled upon a page that does not exist. Return to the home page.
The npm installed without any warnings or errors in terminal.
Redis server version 2.4.10
NodeBB 0.4.2
Node v0.10.20
RHEL 6.5 w/ 2.6.32-431.11.2.el6.x86_64Running tail -f on the log, the following is produced when I click on the Emailer (Local) plugin page:
io: 1 on [ 'user.getOnlineUsers', [], [Function: ack] ] io: 1 on [ '*', { name: 'user.getOnlineUsers', args: [ [] ] }, [Function: ack] ] io: 1 on [ 'widgets.render', { template: '404.tpl', url: '404', location: 'sidebar' }, [Function: ack] ] io: 1 on [ '*', { name: 'widgets.render', args: [ [Object] ] }, [Function: ack] ] io: 1 on [ 'widgets.render', { template: '404.tpl', url: '404', location: 'footer' }, [Function: ack] ] io: 1 on [ '*', { name: 'widgets.render', args: [ [Object] ] }, [Function: ack] ] io: 1 on [ 'meta.buildTitle', '404', [Function: ack] ] io: 1 on [ '*', { name: 'meta.buildTitle', args: [ '404' ] }, [Function: ack] ]
-
That plugin has not been updated to work with the latest NodeBB. You might have to use another plugin that will give you access to a 3rd party email service, like Mandrill.
-
Thanks, Mandrill works nicely. I was concerned about pricing but they have a Free tier.
-
@Guiri said:
Thanks, Mandrill works nicely. I was concerned about pricing but they have a Free tier.
Yes, I use the free tier and even with all the spam, I'm not even coming close to maxing out.
-
I actually forked the plugin and updated to 0.4x
npm install git://github.com/psychobunny/nodebb-plugin-emailer-local
but of course, Mandrill is probably a better option in general
-
@psychobunny said:
I actually forked the plugin and updated to 0.4x
Now, that's a reason we need to find a way for new and old users to discover available plugins
-
@psychobunny
npm install git://github.com/psychobunny/nodebb-plugin-emailer-local
seems to hang at:npm verb lock git://github.com/psychobunny/nodebb-plugin-emailer-local /root/.npm/686ec736-unny-nodebb-plugin-emailer-local.lock
npm verb addRemoteGit [ 'git://github.com/psychobunny/nodebb-plugin-emailer-local',
npm verb addRemoteGit 'master' ]Any advice? Anyone successfully used this fork?
-
@SPHINX please give nodebb-plugin-emailer-nodemailer a try instead
-
@julian said:
nodebb-plugin-emailer-nodemailer
If I try: npm install nodebb-plugin-emailer-nodemailer
I get: npm ERR! 404 'nodebb-plugin-emailer-nodemailer' is not in the npm registry.
-
@SPHINX Ah, nevermind, seems that plugin doesn't exist anymore... can you try installing @psychobunny's fork via npm install again?
-
@julian Tried again, still get the same error for his fork:
npm install --verbose git://github.com/psychobunny/nodebb-plugin-emailer-local
...
npm verb lock git://github.com/psychobunny/nodebb-plugin-emailer-local /root/.npm/686ec736-unny-nodebb-plugin-emailer-local.lock
npm verb addRemoteGit [ 'git://github.com/psychobunny/nodebb-plugin-emailer-local',
npm verb addRemoteGit 'master' ] -
Hold on, might have found something on my end...
Yes, firewall blocking the git port. Fixing... -
Could you try using
git+https://github.com/psychobunny/nodebb-plugin-emailer-local
instead, perhaps? -
@julian Perfect. That will do it. Installed. Now testing...
-
Settings page now visible for emailer local.
Still waiting for an email to make it through to confirm things are working. -
No sign of any emails making it out of NodeBB.
I am using exim4 (locally obviously). Sending from a shell prompt using the 'mail' command works fine, so I have to assume it works.
Best way to debug NodeBB issues?
-
Right, so from the log:
warn: [emailer.smtp] Unable to send
reset
email to uid 2!! -
Debugging complete. Found the following error: 503 AUTH command used when not advertised
So to hack a fix, I had to comment out the 'auth' portion of the nodemailerTransport config object in index.js (lines 24-27).
Long route to get there, but emails are now working.
Thanks for your help. Hopefully things are smoother with the next stable release.
I should probably fork and do a nicer fix for others to use. Will add to my todo list. -
If anyone else needs the (nicer) fix, here it is:
npm install git+https://github.com/SPHINX--/nodebb-plugin-emailer-local
-
@SPHINX Thanks! I've opened up a pull request back to @psychobunny's repository.
https://github.com/psychobunny/nodebb-plugin-emailer-local/pull/1