Skip to content

Commit d405ff6

Browse files
committed
Updated contenId
1 parent 920f638 commit d405ff6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/communication-services/quickstarts/email/send-email-advanced/includes/inline-attachments-powershell.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ $emailAttachment = @(
6262
ContentInBase64 = $fileBytes
6363
ContentType = "<image/png>"
6464
Name = "<inline-attachment.png>"
65-
contentId = "<inline-attachment>"
65+
contentId = "<contentId>"
6666
}
6767
)
6868
@@ -71,7 +71,7 @@ $message = @{
7171
RecipientTo = @($emailRecipientTo) # Array of email address objects
7272
SenderAddress = '<[email protected]>'
7373
Attachment = @($emailAttachment) # Array of attachments
74-
ContentHtml = "<html><head><title>Enter title</title></head><body><img src='cid:<inline-attachment>' alt='Company Logo'/><h1>This is the first email from ACS - Azure PowerShell</h1></body></html>"
74+
ContentHtml = "<html><head><title>Enter title</title></head><body><img src='cid:<contentId>' alt='Company Logo'/><h1>This is the first email from ACS - Azure PowerShell</h1></body></html>"
7575
ContentPlainText = "This is the first email from ACS - Azure PowerShell"
7676
}
7777
```
@@ -84,7 +84,7 @@ Make these replacements in the code:
8484
- Replace `<image file path>` with the actual file paths of the attachments you want to send.
8585
- Replace `<image/png>` with the appropriate content types for your attachments.
8686
- Replace `<inline-attachment.png>` with the filenames of your attachments.
87-
- Replace `<inline-attachment>` with the Content-ID for your inline attachment.
87+
- Replace `<contentId>` with the Content-ID for your inline attachment.
8888

8989
Queues an email message to be sent to one or more inline attachments.
9090

@@ -109,19 +109,19 @@ $emailAttachment = @(
109109
ContentInBase64 = $fileBytes1
110110
ContentType = "<image/png>"
111111
Name = "<inline-attachment1.png>"
112-
contentId = "<inline-attachment1>"
112+
contentId = "<contentId1>"
113113
},
114114
@{
115115
ContentInBase64 = $fileBytes2
116116
ContentType = "<image/png>"
117117
Name = "<inline-attachment2.png>"
118-
contentId = "<inline-attachment2>"
118+
contentId = "<contentId2>"
119119
},
120120
@{
121121
ContentInBase64 = $fileBytes3
122122
ContentType = "<image/png>"
123123
Name = "<inline-attachment3.png>"
124-
contentId = "<inline-attachment3>"
124+
contentId = "<contentId3>"
125125
}
126126
)
127127
@@ -130,7 +130,7 @@ $message = @{
130130
RecipientTo = @($emailRecipientTo) # Array of email address objects
131131
SenderAddress = '<[email protected]>'
132132
Attachment = @($emailAttachment) # Array of attachments
133-
ContentHtml = "<html><head><title>Enter title</title></head><body><img src='cid:<inline-attachment1>' alt='Company Logo'/><img src='cid:<inline-attachment2>' alt='Company Logo'/><img src='cid:<inline-attachment3>' alt='Company Logo'/><h1>This is the first email from ACS - Azure PowerShell</h1></body></html>"
133+
ContentHtml = "<html><head><title>Enter title</title></head><body><img src='cid:<contentId1>' alt='Company Logo'/><img src='cid:<contentId2>' alt='Company Logo'/><img src='cid:<contentId3>' alt='Company Logo'/><h1>This is the first email from ACS - Azure PowerShell</h1></body></html>"
134134
ContentPlainText = "This is the first email from ACS - Azure PowerShell"
135135
}
136136
```
@@ -142,7 +142,7 @@ Make these replacements in the code:
142142
- Replace `<image file path1>` `<image file path2>` `<image file path3>` with the actual file paths of the attachments you want to send.
143143
- Replace `<image/png>` with the appropriate content types for your attachments.
144144
- Replace `<inline-attachment1.png>` `<inline-attachment2.png>` `<inline-attachment3.png>` with the filenames of your attachments.
145-
- Replace `<inline-attachment1>` `<inline-attachment2>` `<inline-attachment3>` with the Content-ID for your inline attachment.
145+
- Replace `<contentId1>` `<contentId2>` `<contentId3>` with the Content-ID for your inline attachment.
146146

147147
### Optional parameters
148148

0 commit comments

Comments
 (0)