Skip to content

Commit 5fbd98c

Browse files
committed
Add TOC entry
Added TOC entry and minor text edits
1 parent 5c59c9d commit 5fbd98c

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

articles/communication-services/samples/email-detect-sensitive-content.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.subservice: email
1515

1616
# Pre-send email analysis: Detecting sensitive data and inappropriate content using Azure AI
1717

18-
Azure Communication Services email enables organizations to send high volume messages to their customers using their applications. This tutorial demonstrates how to leverage Azure AI to ensure that your messages accurately reflect your business’s brand and reputation before sending them. Azure AI offers services to analyze your email content for sensitive data and identify inappropriate content.
18+
Azure Communication Services email enables organizations to send high volume messages to their customers using their applications. This tutorial shows how to leverage Azure AI to ensure that your messages accurately reflect your business’s brand and reputation before sending them. Azure AI offers services to analyze your email content for sensitive data and identify inappropriate content.
1919

2020
This tutorial describes how to use Azure AI Text Analytics to check for sensitive data and Azure AI Content Safety to identify inappropriate text content. Use these functions to check your content before sending the email using Azure Communication Services.
2121

@@ -73,7 +73,7 @@ From the application directory, install the Azure Communication Services Email c
7373

7474
## Create the Main function
7575

76-
Open `Program.cs` and replace the existing contents with the following code. The *using* directives include the `Azure.Communication.Email` and `Azure.AI namespaces`. The rest of the code outlines the `SendMail` function for your program.
76+
Open `Program.cs` and replace the existing contents with the following code. The `using` directives include the `Azure.Communication.Email` and `Azure.AI namespaces`. The rest of the code outlines the `SendMail` function for your program.
7777

7878
```csharp
7979
using System;
@@ -243,7 +243,7 @@ You have a few options available for authenticating to an email client. This exa
243243
Open `Program.cs` in an editor. Add the following code to the body of the Main function to initialize an `EmailClient` with your connection string. This code retrieves the connection string for the resource from an environment variable named `COMMUNICATION_SERVICES_CONNECTION_STRING`. For more information about managing your resource connection string, see [Quickstart: Create and manage Communication Services resources > Store your connection string](../quickstarts/create-communication-resource.md#store-your-connection-string).
244244

245245
```csharp
246-
// This code demonstrates how to fetch your connection string from an environment variable.
246+
// This code shows how to fetch your connection string from an environment variable.
247247
string connectionString = Environment.GetEnvironmentVariable("COMMUNICATION_SERVICES_CONNECTION_STRING");
248248
EmailClient emailClient = new EmailClient(connectionString);
249249
```
@@ -260,8 +260,8 @@ Put both the subject and the message body into a `List<string>` which can be use
260260

261261
```csharp
262262
//Set sample content
263-
var sender = "[email protected]"; //obtain the send email from your email resource in the Azure Portal
264-
var recipient = "[email protected]"; //modify the recipient
263+
var sender = "[email protected]"; // get the send email from your email resource in the Azure Portal
264+
var recipient = "[email protected]"; // modify the recipient
265265
var subject = "Precheck Azure Communication Service Email with Azure AI";
266266
var htmlContent = "<html><body><h1>Precheck email test</h1><br/><h4>This email message is sent from Azure Communication Service Email. </h4>";
267267
htmlContent += "<p> My SSN is 123-12-1234. My Credit Card Number is: 1234 4321 5678 8765. My address is 1011 Main St, Redmond, WA, 998052 </p>";

articles/communication-services/toc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,10 @@ items:
657657
href: samples/chat-hero-sample.md
658658
- name: Authentication service hero sample
659659
href: samples/trusted-auth-sample.md
660+
- name: Email
661+
items:
662+
- name: Azure AI to detect sensitive data example
663+
href: samples/email-detect-sensitive-content.md
660664
- name: Call Automation
661665
items:
662666
- name: Call Automation AI sample

0 commit comments

Comments
 (0)