To setup mail from DISE Server, you need to manually edit the file "C:\DISE Server Data\nodeserver\lib\config\messageServices.js".


By default it looks something like this:

module.exports = null;
/*module.exports = {
  email: [
    {
      defaultFromAddress: 'alerts@diseserver.net',
      transport: {
        type: 'smtp',
        options: {
          port: 25,
          host: 'smtp.diseserver.net'
        }
      }
    }
  ]
};*/


To set to a different mail provider, 
  1. Comment out the line module.exports = null; by putting two slashes (//) in front, and delete the starting /* and the ending */ .
  2. Adjust the host and port to match your configuration.
  3. To add authentication, you can add the following to the options object.
    auth: { user: 'username', pass: 'password' }
  4. Add any additional properties as described here:
    https://nodemailer.com/smtp/
  5. Restart the DISEServerNodeJS service to apply the settings.


If there is an issue sending email, please consult the node.log file in the "DISE Server Data" folder.


Example

Below is an example messageServices.js for the free Easy SMTP service: (https://www.easy-smtp.com)

Change the field according to your account.

module.exports =
{
  email: [
    {
      defaultFromAddress: 'alerts@dise-mailer.com',
      transport: {
        type: 'smtp',
        options: {
          port: 587,
          host: 'ssrs.reachmail.net',
          secure: true,
          auth:
          {    
            user: 'AccountKey\Username',
            pass: 'P@55w0rd'
          }
        }
      }
    }
  ]
};