Skip to content

Commit 6a9f589

Browse files
[Outlook] Update to note Base64-encoded
1 parent a59372a commit 6a9f589

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

playlists-prod/outlook.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
api_set:
4141
Mailbox: '1.1'
4242
- id: outlook-item-body-add-inline-base64-image
43-
name: Add inline Base64 image to message or appointment body (Compose)
43+
name: Add inline Base64-encoded image to message or appointment body (Compose)
4444
fileName: add-inline-base64-image.yaml
4545
description: >-
46-
Add an inline Base64 image to the body of a message or appointment being
47-
composed.
46+
Add an inline Base64-encoded image to the body of a message or appointment
47+
being composed.
4848
rawUrl: >-
4949
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/20-item-body/add-inline-base64-image.yaml
5050
group: Item Body

playlists/outlook.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
api_set:
4141
Mailbox: '1.1'
4242
- id: outlook-item-body-add-inline-base64-image
43-
name: Add inline Base64 image to message or appointment body (Compose)
43+
name: Add inline Base64-encoded image to message or appointment body (Compose)
4444
fileName: add-inline-base64-image.yaml
4545
description: >-
46-
Add an inline Base64 image to the body of a message or appointment being
47-
composed.
46+
Add an inline Base64-encoded image to the body of a message or appointment
47+
being composed.
4848
rawUrl: >-
4949
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/main/samples/outlook/20-item-body/add-inline-base64-image.yaml
5050
group: Item Body

samples/outlook/20-item-body/add-inline-base64-image.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
order: 3
22
id: outlook-item-body-add-inline-base64-image
3-
name: Add inline Base64 image to message or appointment body (Compose)
4-
description: Add an inline Base64 image to the body of a message or appointment being composed.
3+
name: Add inline Base64-encoded image to message or appointment body (Compose)
4+
description: Add an inline Base64-encoded image to the body of a message or appointment being composed.
55
host: OUTLOOK
66
api_set:
77
Mailbox: '1.8'
@@ -17,7 +17,7 @@ script:
1717
// Get the current body of the message or appointment.
1818
mailItem.body.getAsync(Office.CoercionType.Html, (bodyResult) => {
1919
if (bodyResult.status === Office.AsyncResultStatus.Succeeded) {
20-
// Insert the Base64 image to the beginning of the body.
20+
// Insert the Base64-encoded image to the beginning of the body.
2121
const options = { isInline: true, asyncContext: bodyResult.value };
2222
mailItem.addFileAttachmentFromBase64Async(base64String, "sample.png", options, (attachResult) => {
2323
if (attachResult.status === Office.AsyncResultStatus.Succeeded) {
@@ -26,7 +26,7 @@ script:
2626
2727
mailItem.body.setAsync(body, { coercionType: Office.CoercionType.Html }, (setResult) => {
2828
if (setResult.status === Office.AsyncResultStatus.Succeeded) {
29-
console.log("Inline Base64 image added to the body.");
29+
console.log("Inline Base64-encoded image added to the body.");
3030
} else {
3131
console.log(setResult.error.message);
3232
}
@@ -44,14 +44,14 @@ script:
4444
template:
4545
content: |-
4646
<section class="ms-Fabric ms-font-m">
47-
<p class="ms-font-m">This sample adds an inline Base64 image to the body of the message or appointment being composed.</p>
47+
<p class="ms-font-m">This sample adds an inline Base64-encoded image to the body of the message or appointment being composed.</p>
4848
<p><b>Required mode</b>: Compose</p>
4949
</section>
5050
5151
<section class="ms-Fabric samples ms-font-m">
5252
<h3>Try it out</h3>
5353
<button id="add-image" class="ms-Button">
54-
<span class="ms-Button-label">Add an inline Base64 image</span>
54+
<span class="ms-Button-label">Add an inline Base64-encoded image</span>
5555
</button>
5656
</section>
5757
language: html

snippet-extractor-output/snippets.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9597,7 +9597,7 @@
95979597

95989598
mailItem.body.getAsync(Office.CoercionType.Html, (bodyResult) => {
95999599
if (bodyResult.status === Office.AsyncResultStatus.Succeeded) {
9600-
// Insert the Base64 image to the beginning of the body.
9600+
// Insert the Base64-encoded image to the beginning of the body.
96019601
const options = { isInline: true, asyncContext: bodyResult.value };
96029602
mailItem.addFileAttachmentFromBase64Async(base64String, "sample.png", options, (attachResult) => {
96039603
if (attachResult.status === Office.AsyncResultStatus.Succeeded) {
@@ -9606,7 +9606,7 @@
96069606

96079607
mailItem.body.setAsync(body, { coercionType: Office.CoercionType.Html }, (setResult) => {
96089608
if (setResult.status === Office.AsyncResultStatus.Succeeded) {
9609-
console.log("Inline Base64 image added to the body.");
9609+
console.log("Inline Base64-encoded image added to the body.");
96109610
} else {
96119611
console.log(setResult.error.message);
96129612
}
@@ -9665,7 +9665,7 @@
96659665

96669666
mailItem.body.getAsync(Office.CoercionType.Html, (bodyResult) => {
96679667
if (bodyResult.status === Office.AsyncResultStatus.Succeeded) {
9668-
// Insert the Base64 image to the beginning of the body.
9668+
// Insert the Base64-encoded image to the beginning of the body.
96699669
const options = { isInline: true, asyncContext: bodyResult.value };
96709670
mailItem.addFileAttachmentFromBase64Async(base64String, "sample.png", options, (attachResult) => {
96719671
if (attachResult.status === Office.AsyncResultStatus.Succeeded) {
@@ -9674,7 +9674,7 @@
96749674

96759675
mailItem.body.setAsync(body, { coercionType: Office.CoercionType.Html }, (setResult) => {
96769676
if (setResult.status === Office.AsyncResultStatus.Succeeded) {
9677-
console.log("Inline Base64 image added to the body.");
9677+
console.log("Inline Base64-encoded image added to the body.");
96789678
} else {
96799679
console.log(setResult.error.message);
96809680
}
@@ -9784,7 +9784,7 @@
97849784

97859785
mailItem.body.getAsync(Office.CoercionType.Html, (bodyResult) => {
97869786
if (bodyResult.status === Office.AsyncResultStatus.Succeeded) {
9787-
// Insert the Base64 image to the beginning of the body.
9787+
// Insert the Base64-encoded image to the beginning of the body.
97889788
const options = { isInline: true, asyncContext: bodyResult.value };
97899789
mailItem.addFileAttachmentFromBase64Async(base64String, "sample.png", options, (attachResult) => {
97909790
if (attachResult.status === Office.AsyncResultStatus.Succeeded) {
@@ -9793,7 +9793,7 @@
97939793

97949794
mailItem.body.setAsync(body, { coercionType: Office.CoercionType.Html }, (setResult) => {
97959795
if (setResult.status === Office.AsyncResultStatus.Succeeded) {
9796-
console.log("Inline Base64 image added to the body.");
9796+
console.log("Inline Base64-encoded image added to the body.");
97979797
} else {
97989798
console.log(setResult.error.message);
97999799
}

0 commit comments

Comments
 (0)