Skip to content

Commit 85c607a

Browse files
committed
use SMTP username in quick start
1 parent e39b5e6 commit 85c607a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

articles/communication-services/quickstarts/email/send-email-smtp/includes/send-email-smtp-powershell.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.service: azure-communication-services
1515
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
1616
- An Azure Communication Email Resource created and ready with a provisioned domain [Get started with Creating Email Communication Resource](../../create-email-communication-resource.md)
1717
- An active Azure Communication Services Resource connected with Email Domain and a Connection String. [Get started by Connecting Email Resource with a Communication Resource](../../connect-email-communication-resource.md)
18-
- Smtp credentials created using an Entra application with access to the Azure Communication Services Resource. [How to create authentication credentials for sending emails using Smtp](../smtp-authentication.md)
18+
- Smtp credentials created using an Entra application with access to the Azure Communication Services Resource. [Create credentials for Simple Mail Transfer Protocol (SMTP) authentication](../smtp-authentication.md)
1919

2020
Completing this quick start incurs a small cost of a few USD cents or less in your Azure account.
2121

@@ -30,7 +30,7 @@ The credentials can be verified using the Microsoft PowerShell utility Send-Mail
3030
To store the credentials in the required PSCredential format, use the following PowerShell commands:
3131
```PowerShell
3232
$Password = ConvertTo-SecureString -AsPlainText -Force -String '<Entra Application Client Secret>'
33-
$Cred = New-Object -TypeName PSCredential -ArgumentList '<Azure Communication Services Resource name>|<Entra Application ID>|<Entra Tenant ID>', $Password
33+
$Cred = New-Object -TypeName PSCredential -ArgumentList '<SMTP Username>', $Password
3434
```
3535

3636
The following PowerShell script can be used to send the email. The **From** value is the mail from address of your verified domain. The **To** value is the email address that you would like to send to.

articles/communication-services/quickstarts/email/send-email-smtp/includes/send-email-smtp-smtpclient.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.service: azure-communication-services
1616
- The latest version [.NET Core client library](https://dotnet.microsoft.com/download/dotnet-core) for your operating system.
1717
- An Azure Communication Email Resource created and ready with a provisioned domain [Get started with Creating Email Communication Resource](../../create-email-communication-resource.md)
1818
- An active Azure Communication Services Resource connected with Email Domain and a Connection String. [Get started by Connecting Email Resource with a Communication Resource](../../connect-email-communication-resource.md)
19-
- Smtp credentials created using an Entra application with access to the Azure Communication Services Resource. [How to create authentication credentials for sending emails using Smtp](../smtp-authentication.md)
19+
- Smtp credentials created using an Entra application with access to the Azure Communication Services Resource. [Create credentials for Simple Mail Transfer Protocol (SMTP) authentication](../smtp-authentication.md)
2020

2121
Completing this quick start incurs a small cost of a few USD cents or less in your Azure account.
2222

@@ -58,7 +58,7 @@ Replace with your domain details and modify the content, recipient details as re
5858
```csharp
5959
//Replace with your domain and modify the content, recipient details as required
6060
61-
string smtpAuthUsername = "<Azure Communication Services Resource name>|<Entra Application Id>|<Entra Application Tenant Id>";
61+
string smtpAuthUsername = "<SMTP Username>";
6262
string smtpAuthPassword = "<Entra Application Client Secret>";
6363
string sender = "[email protected]";
6464
string recipient = "[email protected]";
@@ -78,7 +78,7 @@ To send an email message, you need to:
7878
using System.Net;
7979
using System.Net.Mail;
8080

81-
string smtpAuthUsername = "<Azure Communication Services Resource name>|<Entra Application Id>|<Entra Application Tenant Id>";
81+
string smtpAuthUsername = "<SMTP Username>";
8282
string smtpAuthPassword = "<Entra Application Client Secret>";
8383
string sender = "[email protected]";
8484
string recipient = "[email protected]";

0 commit comments

Comments
 (0)