Change method to insert text on mail and add break after and before link

This commit is contained in:
Claudio Boggian
2024-06-25 15:04:16 +02:00
parent 5169257d20
commit 51c9bca9a8
+4 -5
View File
@@ -11,8 +11,8 @@ Office.onReady((data) => {
async function writeInviteIta(event) { async function writeInviteIta(event) {
Office.context.mailbox.item.body.prependAsync( Office.context.mailbox.item.body.setSelectedDataAsync(
"<a href=\"https://portal.pal.it/General/VisitorRegistration\">Registrati come visitatore per agevolare il tuo ingresso in PAL s.r.l.</a><br/><br/>", "<br/><a href=\"https://portal.pal.it/General/VisitorRegistration\">Registrati come visitatore per agevolare il tuo ingresso in PAL s.r.l.</a><br/>",
{ {
coercionType: "html", coercionType: "html",
}, },
@@ -30,8 +30,8 @@ async function writeInviteIta(event) {
} }
async function writeInviteEng(event) { async function writeInviteEng(event) {
Office.context.mailbox.item.body.prependAsync( Office.context.mailbox.item.body.setSelectedDataAsync(
"<a href=\"https://portal.pal.it/General/VisitorRegistration\">Register as a visitor to facilitate your entry into PAL s.r.l.</a><br/><br/>", "<br/><a href=\"https://portal.pal.it/General/VisitorRegistration\">Register as a visitor to facilitate your entry into PAL s.r.l.</a><br/>",
{ {
coercionType: "html", coercionType: "html",
}, },
@@ -49,5 +49,4 @@ async function writeInviteEng(event) {
} }
Office.actions.associate("writeInviteIta", writeInviteIta); Office.actions.associate("writeInviteIta", writeInviteIta);
Office.actions.associate("writeInviteEng", writeInviteEng); Office.actions.associate("writeInviteEng", writeInviteEng);