text: const path = require('path');
  const nodemailer = require('nodemailer');
  const hbs = require('nodemailer-express-handlebars');
  
  const { host, port, user, pass } = require('../config/mail.json');
  
  const transport = nodemailer.createTransport({
    host,
    port,
    auth: { user, pass },
  });
  
  transport.use(
    'compile',
    hbs({
      viewEngine: {
        partialsDir: path.resolve('./src/resources/mail/'),
        layoutsDir: path.resolve('./src/resources/mail/'),
      },
      viewPath: path.resolve('./src/resources/mail/'),
    })
  );
  
  console.log(__dirname);
  
  module.exports = transport;
  