Skip to content

Commit ad31d8d

Browse files
committed
Addressing PR feedback
1 parent 61ebb49 commit ad31d8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Make these replacements in the code:
172172

173173
To send the email message, call the `beginSend` function from the `EmailClient`.
174174

175-
Calling `beginSend` on the sync client returns a `SyncPoller` object, which can be used to check on the status of the operation and retrieve the result once it's finished. Note that the initial request to send an email will be sent as soon as the `beginSend` method is called.
175+
Calling `beginSend` on the sync client returns a `SyncPoller` object, which can be used to check on the status of the operation and retrieve the result once it's finished. Note that the initial request to send an email will be sent as soon as the `beginSend` method is called. Sending an email is a long running operation, so calling `getFinalResult` on the poller returned by `beginSend` could potentially block the application for a long time. The recommended method is to do manual polling at an interval that's appropriate for your application needs as demonstrated in the sample below.
176176

177177
```java
178178
try
@@ -217,6 +217,8 @@ catch (Exception exception)
217217

218218
## [Async Client](#tab/async-client)
219219

220+
## Creating the email client with authentication
221+
220222
The [Azure SDK for Java also contains non-blocking, asynchronous APIs for interacting with Azure services](https://learn.microsoft.com/en-us/azure/developer/java/sdk/async-programming).
221223

222224
#### Connection String

0 commit comments

Comments
 (0)