Skip to content

Commit 645756f

Browse files
Merge pull request #232902 from ddematheu2/patch-3
Update send-email-js.md
2 parents a6759ff + 7bbd045 commit 645756f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const emailClient = new EmailClient(endpoint, credential);
133133
Email clients can also be authenticated using an [AzureKeyCredential](https://azuresdkdocs.blob.core.windows.net/$web/python/azure-core/latest/azure.core.html#azure.core.credentials.AzureKeyCredential). Both the `key` and the `endpoint` can be founded on the "Keys" pane under "Settings" in your Communication Services Resource.
134134

135135
```javascript
136-
const { EmailClient } = require("@azure/communication-email");
136+
const { EmailClient, KnownEmailSendStatus } = require("@azure/communication-email");
137137
const { AzureKeyCredential } = require("@azure/core-auth");
138138
require("dotenv").config();
139139

@@ -154,6 +154,7 @@ To send an email message, call the `beginSend` function from the EmailClient. Th
154154
```javascript
155155

156156
async function main() {
157+
const POLLER_WAIT_TIME = 10
157158
try {
158159
const message = {
159160
senderAddress: "<[email protected]>",

0 commit comments

Comments
 (0)