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": {
|
"linter": {
|
||||||
"domains": {
|
"domains": {
|
||||||
"next": "recommended",
|
"next": "recommended",
|
||||||
"project": "recommended",
|
"project": "none",
|
||||||
"react": "recommended"
|
"react": "recommended"
|
||||||
},
|
},
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
|
|
|
||||||
|
|
@ -90,26 +90,18 @@ export const comunicazioniRouter = createTRPCRouter({
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
await NewMail({
|
await NewMail({
|
||||||
template: {
|
template: {
|
||||||
mailType: "emailSchedaContatto",
|
mailType: "generic",
|
||||||
props: {
|
props: {
|
||||||
nominativo: input.nominativo,
|
title: `Ricevuta invio Scheda ${input.codice} a ${input.to}`,
|
||||||
telefono: input.numero,
|
testo: `La scheda dell'annuncio ${input.codice} è stata inviata a ${input.to} con successo.`,
|
||||||
indirizzo: input.indirizzo,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mail: {
|
mail: {
|
||||||
subject: `Ric. invio Scheda ${input.codice} a ${input.to}`,
|
subject: `Ricevuta invio Scheda ${input.codice} a ${input.to}`,
|
||||||
to: "web@infoalloggi.it",
|
to: "web@infoalloggi.it",
|
||||||
attachments: [
|
|
||||||
{
|
|
||||||
filename: `scheda annuncio ${input.codice}.pdf`,
|
|
||||||
content: base64Content,
|
|
||||||
encoding: "base64",
|
|
||||||
contentType: "application/pdf",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue