feat: update email template for Scheda Annuncio to use generic mail type and enhance subject and body
This commit is contained in:
parent
dc859ece6f
commit
e153fc9ddb
2 changed files with 7 additions and 15 deletions
|
|
@ -69,7 +69,7 @@
|
|||
"linter": {
|
||||
"domains": {
|
||||
"next": "recommended",
|
||||
"project": "recommended",
|
||||
"project": "none",
|
||||
"react": "recommended"
|
||||
},
|
||||
"enabled": true,
|
||||
|
|
|
|||
|
|
@ -90,26 +90,18 @@ export const comunicazioniRouter = createTRPCRouter({
|
|||
],
|
||||
},
|
||||
});
|
||||
|
||||
await NewMail({
|
||||
template: {
|
||||
mailType: "emailSchedaContatto",
|
||||
mailType: "generic",
|
||||
props: {
|
||||
nominativo: input.nominativo,
|
||||
telefono: input.numero,
|
||||
indirizzo: input.indirizzo,
|
||||
title: `Ricevuta invio Scheda ${input.codice} a ${input.to}`,
|
||||
testo: `La scheda dell'annuncio ${input.codice} è stata inviata a ${input.to} con successo.`,
|
||||
},
|
||||
},
|
||||
mail: {
|
||||
subject: `Ric. invio Scheda ${input.codice} a ${input.to}`,
|
||||
subject: `Ricevuta invio Scheda ${input.codice} a ${input.to}`,
|
||||
to: "web@infoalloggi.it",
|
||||
attachments: [
|
||||
{
|
||||
filename: `scheda annuncio ${input.codice}.pdf`,
|
||||
content: base64Content,
|
||||
encoding: "base64",
|
||||
contentType: "application/pdf",
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
} catch (e) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue