diff --git a/utils/email.js b/utils/email.js index 68bf6dab..dc9d7ae1 100644 --- a/utils/email.js +++ b/utils/email.js @@ -1,4 +1,4 @@ -const htmlToText = require('html-to-text'); +const { htmlToText } = require('html-to-text'); const nodemailer = require('nodemailer'); const pug = require('pug'); @@ -49,7 +49,7 @@ module.exports = class Email { to: this.to, subject, html, - text: htmlToText.fromString(html) + text: htmlToText(html) }; await this.newTransport().sendMail(mailOptions);