Edit contact API

This commit is contained in:
Paul Nicoué 2023-02-03 15:00:11 +01:00
parent abc6a1b947
commit 5c6c2ab891
3 changed files with 10 additions and 3 deletions

View file

@ -29,7 +29,11 @@ export default defineEventHandler(async (event) => {
},
],
Subject: body.subject,
TextPart: body.message
HTMLPart:
`<div><b>Nom :</b> ${body.name}</div>
<div><b>Adresse e-mail :</b> <a href="mailto:${body.email}" target="_blank">${body.email}</a></div>
<br />
<div>${body.message}</div>`
}
]
});