text: const mailgun = require("mailgun-js");
  const DOMAIN = process.env.MAIL_DOMAIN;
  const API_KEY = process.env.MAIL_GUN_API
  const mg = mailgun({apiKey: API_KEY, domain: DOMAIN});
  
  const sendEmailVerification = (firstname, email, token, host) => {
      const data = {
          from: 'AlwaysUpdate - Admin <no-reply@mg.easynews.tech>',
          to: `${email}`,
          subject: 'Email Verification - Always Update',
          text: `
          Hello! ${firstname}.
          Please verify your account by clicking the next link: \nhttps://${host}/api/confirmation/${token}`
      };
  
      mg.messages().send(data, function (error, body) {
          if (error) {
              console.log(error)
          }
          return body
      });
  }
  
  
  module.exports = {
      sendEmail: sendEmailVerification
  }