diff --git a/outllook_pal_toolsWeb/commands.js b/outllook_pal_toolsWeb/commands.js
index cf5738d..0d4d24d 100644
--- a/outllook_pal_toolsWeb/commands.js
+++ b/outllook_pal_toolsWeb/commands.js
@@ -11,8 +11,8 @@ Office.onReady((data) => {
async function writeInviteIta(event) {
- Office.context.mailbox.item.body.prependAsync(
- "Registrati come visitatore per agevolare il tuo ingresso in PAL s.r.l.
",
+ Office.context.mailbox.item.body.setSelectedDataAsync(
+ "
Registrati come visitatore per agevolare il tuo ingresso in PAL s.r.l.
",
{
coercionType: "html",
},
@@ -30,8 +30,8 @@ async function writeInviteIta(event) {
}
async function writeInviteEng(event) {
- Office.context.mailbox.item.body.prependAsync(
- "Register as a visitor to facilitate your entry into PAL s.r.l.
",
+ Office.context.mailbox.item.body.setSelectedDataAsync(
+ "
Register as a visitor to facilitate your entry into PAL s.r.l.
",
{
coercionType: "html",
},
@@ -49,5 +49,4 @@ async function writeInviteEng(event) {
}
Office.actions.associate("writeInviteIta", writeInviteIta);
-
Office.actions.associate("writeInviteEng", writeInviteEng);
\ No newline at end of file