Email services configuration in v1.6.1

Technical Support
  • There is a standard page for the configuration of email services, (/admin/settings/email)
    but how do we input the required parameters for each individual mail service (gmail, mailgun, ...)

    There is no specific input provided for each of them !

    my screen capture is in french as it is the langage of my forum instance

    Capture d'écran

  • The username and password fields are there in your screenshot. What are you confused about?

  • Thanks a lot for your quick answer ! 🙂

    Do you mean that to use mailgun as my third-party email service provider, i just have to enter my mailgun username and password in these fields ?
    Yeah.. i'm a bit confused as i expected that each services would have its own configuration.
    And i am even more confused by the fact that the sentence :

    An alternative would be to utilise a third-party emailer plugin such as SendGrid, Mailgun, etc. Browse available plugins here.

    leads to a broken link... (can you see the {config.relative_path} inside the url ?)

  • As I understand it, Mailgun supports two different ways of sending emails. They have an HTTP API, where you send emails using an HTTP request with credentials like an authentication key. They also have an SMTP API, where emails are sent via the Mailgun SMTP server.

    When you use the Mailgun plugin (nodebb-plugin-emailer-mailgun) which is installed by going to ACP -> Plugins -> Install, it uses the HTTP API to send emails. When you use the core SMTP emailer (the one in the ACP settings), it will use the Mailgun SMTP API.

    Details for configuring Mailgun SMTP credentials are here: https://help.mailgun.com/hc/en-us/articles/203380100-Where-can-I-find-my-API-key-and-SMTP-credentials-

    Yeah.. i'm a bit confused as i expected that each service would have its own configuration.

    The list there selects what SMTP preset is used. These presets provide domains, ports, and security settings. What is left are authentication credentials, which for SMTP are restricted to a username / password combination. That's why the same username and password field are used regardless of preset.

    And i am even more confused by the fact that the sentence :

    An alternative would be to utilise a third-party emailer plugin such as SendGrid, Mailgun, etc. Browse available plugins here.

    That's just saying there are also plugins that provide emailer functionality for services that provide non-SMTP APIs.

    leads to a broken link... (can you see the {config.relative_path} inside the url ?)

    Yeah that link needs to be fixed.

  • @pitaj Thanks a lot : that really makes much more sense now.

    I allready had deployed mailgun as a service through the use of an API key and that's what i was looking for !
    Now that my domain has been created in the mailgun admin pannel and verified through the propagation of specific DNS records, i can confirm that the SMTP credentials are working and that the mails are being sent !

    These clarifications were very helpful indeed ! 👍


Suggested Topics


  • 0 Votes
    2 Posts
    241 Views

    It used to be that you had to upgrade in multiple steps, but not anymore. You can upgrade directly from 1.12.0 to 1.13.2

    Make sure you backup your database

  • 0 Votes
    13 Posts
    6k Views

    Final update, it worked on the production server!! so now our forum is working properly sending emails the Linux way on a Windows Server OS, quite nice I would say, just as a side note our forum is actually really small in number of users, as it is an internal forum, so I can't assure this setup will work out to other forum's expectations or needs, also I would like to add that this shouldn't be the way to do it on Windows as it is kind of a weird way to handle it so in later versions it would be nice to see it reworked or polished for Windows environments (especially because it looks like the program used to simulate sendmail on Windows is no longer receiving maintenance).

  • 0 Votes
    10 Posts
    4k Views

    You're very welcome @SergioNG, i'm glad i was able to help 😌

    Off-topic: Yay! 3 reputation. No more 10 minute cooldown between posts. Thank you :squirrel:

  • 0 Votes
    4 Posts
    2k Views

    Thanks for answering this with such speed @Kowlin @pichalite 😄

  • 1 Votes
    1 Posts
    1k Views

    Hi guys!

    I have previous 0.5.0-2 version of forum on Heroku. It works fine. When I updated NodeBB to 0.6.1 version it crashed with error. Any ideas?

    2015-04-30T06:31:05.151177+00:00 heroku[web.1]: State changed from crashed to starting
    2015-04-30T06:31:12.946261+00:00 heroku[web.1]: Starting process with command npm start
    2015-04-30T06:31:16.159469+00:00 app[web.1]: Detected 512 MB available memory, 512 MB limit per process (WEB_MEMORY)
    2015-04-30T06:31:16.159494+00:00 app[web.1]: Recommending WEB_CONCURRENCY=1
    2015-04-30T06:31:16.817884+00:00 app[web.1]:
    2015-04-30T06:31:16.817890+00:00 app[web.1]: > [email protected] start /app
    2015-04-30T06:31:16.817892+00:00 app[web.1]: > ./nodebb start
    2015-04-30T06:31:16.817893+00:00 app[web.1]:
    2015-04-30T06:31:16.854535+00:00 app[web.1]: sh: 1: ./nodebb: Permission denied
    2015-04-30T06:31:16.873738+00:00 app[web.1]: npm ERR! Linux 3.13.0-49-generic
    2015-04-30T06:31:16.878037+00:00 app[web.1]: npm ERR! code ELIFECYCLE
    2015-04-30T06:31:16.878041+00:00 app[web.1]: npm ERR! [email protected] start: ./nodebb start
    2015-04-30T06:31:16.878043+00:00 app[web.1]: npm ERR! Exit status 126
    2015-04-30T06:31:16.878044+00:00 app[web.1]: npm ERR!
    2015-04-30T06:31:16.878046+00:00 app[web.1]: npm ERR! Failed at the [email protected] start script './nodebb start'.
    2015-04-30T06:31:16.878048+00:00 app[web.1]: npm ERR! This is most likely a problem with the nodebb package,
    2015-04-30T06:31:16.878049+00:00 app[web.1]: npm ERR! not with npm itself.
    2015-04-30T06:31:16.878050+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system:
    2015-04-30T06:31:16.878052+00:00 app[web.1]: npm ERR! ./nodebb start
    2015-04-30T06:31:16.878054+00:00 app[web.1]: npm ERR! You can get their info via:
    2015-04-30T06:31:16.878693+00:00 app[web.1]: npm ERR! npm owner ls nodebb
    2015-04-30T06:31:16.878696+00:00 app[web.1]: npm ERR! There is likely additional logging output above.
    2015-04-30T06:31:16.889120+00:00 app[web.1]:
    2015-04-30T06:31:16.899848+00:00 app[web.1]: npm ERR! /app/npm-debug.log
    2015-04-30T06:31:16.866363+00:00 app[web.1]:
    2015-04-30T06:31:16.874577+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
    2015-04-30T06:31:16.875101+00:00 app[web.1]: npm ERR! node v0.12.2
    2015-04-30T06:31:16.876089+00:00 app[web.1]: npm ERR! npm v2.7.4
    2015-04-30T06:31:16.897668+00:00 app[web.1]: npm ERR! Please include the following file with any support request:
    2015-04-30T06:31:17.925842+00:00 heroku[web.1]: Process exited with status 1
    2015-04-30T06:31:17.938969+00:00 heroku[web.1]: State changed from starting to crashed