diff --git a/back/methods/osticket/sendToSupport.js b/back/methods/osticket/sendToSupport.js index a9fcf28a93..5b9ebb4e3b 100644 --- a/back/methods/osticket/sendToSupport.js +++ b/back/methods/osticket/sendToSupport.js @@ -40,9 +40,7 @@ module.exports = Self => { const subjectReason = JSON.parse(additionalData?.httpRequest)?.data?.error; smtp.send({ - to: config.app.reportEmail, - from: emailUser.email, - replyTo: emailUser.email, + to: `${config.app.reportEmail}, ${emailUser.email}`, subject: '[Support-Salix] ' + additionalData?.frontPath + ' ' + diff --git a/print/core/smtp.js b/print/core/smtp.js index 01d66b6f07..8c07e7ecac 100644 --- a/print/core/smtp.js +++ b/print/core/smtp.js @@ -9,7 +9,7 @@ module.exports = { }, async send(options) { - options.from = options.from ?? `${config.app.senderName} <${config.app.senderEmail}>`; + options.from = `${config.app.senderName} <${config.app.senderEmail}>`; const env = process.env.NODE_ENV; const canSend = env === 'production' || !env || options.force; @@ -19,10 +19,8 @@ module.exports = { return Promise.resolve(true); } - if (!env) { + if (!env) options.to = config.app.senderEmail; - options.from = `${config.app.senderName} <${config.app.senderEmail}>`; - } let res; let error;