text: var nodemailer = require('nodemailer');
  
  exports.sendMailToUser = function(conf, message) {
    var options = {
      host: conf.host,
      secureConnection: conf.secureConnection,
      port: conf.port
    }
  
    if (conf.serviceEmail && conf.serviceEmail.trim().length > 0)
      options.auth = {
        user: conf.serviceEmail,
        pass: conf.servicePass
      }
  
    var transport = nodemailer.createTransport("SMTP", options);
  
    console.log('Sending Mail...');
  
    message.from = conf.sendFromName + ' <' + conf.sendFromEmail + '>',
    message.headers = {
      'X-Laziness-level': 1000
    },
  
    transport.sendMail(message, function(error) {
      if (error) {
        console.log('Error occured');
        console.log(error.message);
        return
      }
  
      console.log('Message sent successfully.');
  
      transport.close();
    });
  }
  