diff --git a/print/core/smtp.js b/print/core/smtp.js index 8c292fafe..c42a080f5 100644 --- a/print/core/smtp.js +++ b/print/core/smtp.js @@ -27,8 +27,8 @@ module.exports = { await db.rawSql(` INSERT INTO vn.mail (sender, replyTo, sent, subject, body, status) VALUES (?, ?, 1, ?, ?, ?)`, [ - options.replyTo, options.to, + options.replyTo, options.subject, options.text || options.html, error && error.message || 'Sent'