fix: tentativo di fix per il riconoscimento del ticket ma otrs è stronzo-merda. feat: nella pagina di anteprima del ticket, aggiunto pulsante per aprire in una scheda interna.

This commit is contained in:
2026-07-15 00:07:34 +02:00
parent 47d11c311e
commit 1bbe561673
6 changed files with 38 additions and 13 deletions
+3 -1
View File
@@ -29,7 +29,7 @@ function getTransporter() {
* Invia una email tramite SMTP (nodemailer).
* Stessa interfaccia di graphMailer.sendMail.
*/
async function sendMail({ to, cc = [], bcc = [], subject, bodyHtml, attachments = [], inlineImages = [], inReplyTo, references }) {
async function sendMail({ to, cc = [], bcc = [], subject, bodyHtml, attachments = [], inlineImages = [], inReplyTo, references, messageId }) {
const transporter = getTransporter();
const mailOptions = {
@@ -41,6 +41,7 @@ async function sendMail({ to, cc = [], bcc = [], subject, bodyHtml, attachments
html: bodyHtml,
inReplyTo,
references,
messageId,
attachments: [
...attachments.map(a => ({
filename: a.filename,
@@ -57,6 +58,7 @@ async function sendMail({ to, cc = [], bcc = [], subject, bodyHtml, attachments
};
await transporter.sendMail(mailOptions);
return { internetMessageId: messageId };
}
module.exports = { sendMail };