code: function sendEmail(isReady, next) {
        // TODO validate emails
  
        //convert message to nodemailer email payload
        let email = message.toObject();
  
        // set mail html body
        if (message.isHtml()) {
          email.html = email.body;
        }
  
        //always set mail text body
        email.text = striptags(email.body || email.subject);
  
        //send actual email
        exports.transport.sendMail(email, next);
      }
docs: send email