Skip to content

Commit f758dd3

Browse files
authored
Fix bug in sample code around attachments
The sample code was missing the Attachments property
1 parent 290d2b8 commit f758dd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/communication-services/quickstarts/email/includes/send-email-net.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ var emailAttachment = new EmailAttachment(
232232
attachmentFileInBytes
233233
);
234234

235-
emailMessage.Add(emailAttachment);
235+
emailMessage.Attachments.Add(emailAttachment);
236236
```
237237

238238
You can download the sample app demonstrating this from [GitHub](https://github.com/Azure-Samples/communication-services-dotnet-quickstarts/tree/main/SendEmailAdvanced/SendEmailWithAttachments)

0 commit comments

Comments
 (0)