You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/email/send-email-advanced/includes/inline-attachments-powershell.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ $emailAttachment = @(
62
62
ContentInBase64 = $fileBytes
63
63
ContentType = "<image/png>"
64
64
Name = "<inline-attachment.png>"
65
-
contentId = "<inline-attachment>"
65
+
contentId = "<contentId>"
66
66
}
67
67
)
68
68
@@ -71,7 +71,7 @@ $message = @{
71
71
RecipientTo = @($emailRecipientTo) # Array of email address objects
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>"
75
75
ContentPlainText = "This is the first email from ACS - Azure PowerShell"
76
76
}
77
77
```
@@ -84,7 +84,7 @@ Make these replacements in the code:
84
84
- Replace `<image file path>` with the actual file paths of the attachments you want to send.
85
85
- Replace `<image/png>` with the appropriate content types for your attachments.
86
86
- 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.
88
88
89
89
Queues an email message to be sent to one or more inline attachments.
90
90
@@ -109,19 +109,19 @@ $emailAttachment = @(
109
109
ContentInBase64 = $fileBytes1
110
110
ContentType = "<image/png>"
111
111
Name = "<inline-attachment1.png>"
112
-
contentId = "<inline-attachment1>"
112
+
contentId = "<contentId1>"
113
113
},
114
114
@{
115
115
ContentInBase64 = $fileBytes2
116
116
ContentType = "<image/png>"
117
117
Name = "<inline-attachment2.png>"
118
-
contentId = "<inline-attachment2>"
118
+
contentId = "<contentId2>"
119
119
},
120
120
@{
121
121
ContentInBase64 = $fileBytes3
122
122
ContentType = "<image/png>"
123
123
Name = "<inline-attachment3.png>"
124
-
contentId = "<inline-attachment3>"
124
+
contentId = "<contentId3>"
125
125
}
126
126
)
127
127
@@ -130,7 +130,7 @@ $message = @{
130
130
RecipientTo = @($emailRecipientTo) # Array of email address objects
0 commit comments