[nodebb-plugin-emailer-local] Local email plugin
-
EDITED by psychobunny:
For 0.4x compatibility please use this fork for now, until @BarveyHirdman can merge my PR
npm install git://github.com/psychobunny/nodebb-plugin-emailer-local
Yesterday I was in great need of the option to send emails via SMTP from NodeBB so I hacked a quick plugin for it.
I decided to make it official and extend it to a point it will be actually useful. I've already published the first version to NPM so you can get it, try it and make suggestions in the repo's issue tracker.
The installation is basically
cd path/to/nodebb && npm install nodebb-plugin-emailer-local
Then enable the plugin in the administrator panel and configure it in its own little section.
Further improvements to do (suggestions more than welcome):
*Use of services (as the plugin uses Nodemailer, I can't see any difficulties in achieving that)
*More options (Secured connection, DKIM signing, maybe SMTP connection pool)The repository: http://github.com/AlfredDobradi/nodebb-plugin-emailer-local
NPM page: https://npmjs.org/package/nodebb-plugin-emailer-localThis is the first NPM package and NodeBB I ever published so if I left something out, please tell.
-
nice, congrats on your first plugin!
-
One thing I forgot. Currently the SMTP password is a text field as I couldn't get its value when I used password type. Is there any trick?
-
@BarveyHirdman, I just updated settings.js to handle password fields. Update to this commit and it should work, I tested with your plugin
-
@psychobunny Thank you, pushed the fixed version.
Edit: Forgot to publish new version to npm. Still need to get used to this.
-
@julian guess who's going to steal this.
-
Thanks @barveyhirdman
-
Started creating service support (Gmail, Hotmail, anything Nodemailer can handle)
-
Mmm... that raises a good question -- should you create a new plugin for each of those? Or maybe a "meta" plugin for the whole lot?
Seems a bit weird to put Gmail and Hotmail capability into a supposedly "local" plugin.
So I imagine, either:
- Rename nodebb-plugin-emailer-local to nodebb-plugin-emailer-nodemailer, or
- Create a new plugin nodebb-plugin-emailer-webmail, or something?
-
@julian yeah actually that makes sense. I'm not sure what would be the more reasonable path.
I'll go with a separate service pack named nodebb-plugin-emailer-nodemailer and leave local alone.
Maybe nodebb-plugin-nodemailer? -
Hi,, tried to install it.. when i hit the link on the menu.. the address doesnt exist...
-
Yep.. thats it planner.. i saw the other topic... gonna wait
-
I missed this thread
Maybe nodebb-plugin-nodemailer?
This. I don't think you should duplicate code across several plugins. It would be perfect to be able to configure either local SMTP or gmail/etc from one page, no need to create multiple plugins. I feel like this is so important that it should really be core. If you like @BarveyHirdman submit a PR maybe and get this in
-
Yep, I agree. Since it's fundamental to the running of a website, it should be core. If somebody does not want to use a local mail service, they she/he can use a 3rd-party service by installing a plugin.
-
@planner said:
Yep, I agree. Since it's fundamental to the running of a website, it should be core. If somebody does not want to use a local mail service, they she/he can use a 3rd-party service by installing a plugin.
I really pushed the issue for a local smtp mailer being in the core, but was rejected for whatever reason. It shouldn't be a plugin at all. Out of all of the forums I've used, the local mailer was always built in the core for ease of use and keeps things simple. Can someone explain to me further what advantage making the local mailer would be? I don't seem to understand.
Funny thing is, all this time I've been using NodeBB, I STILL have no mail server connected with it because I'm confused here. From core to plugin, and now we have this...