Skip to content

Commit 6fb2407

Browse files
committed
Update Azure CLI documentation on sending emails
1 parent e1f162e commit 6fb2407

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

articles/communication-services/quickstarts/email/includes/send-email-az-cli.md

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ Make these replacements in the code:
8888
- Replace `<[email protected]>` with the email address you would like to send a message to.
8989
- Replace `<[email protected]>` with the MailFrom address of your verified domain.
9090

91-
To track the status of the email delivery, you need the `messageId` from the response.
91+
The above command also performs a polling on the messageId and returns the status of the email delivery. The status can be one of the following:
92+
93+
[!INCLUDE [Email Message Status](./email-operation-status.md)]
9294

9395
### Optional parameters
9496

@@ -98,6 +100,8 @@ The following optional parameters are available in Azure CLI.
98100

99101
- `--importance` sets the importance type for the email. Known values are: high, normal, and low. Default is normal.
100102

103+
- `--to` sets the list of email recipients.
104+
101105
- `--cc` sets carbon copy email addresses.
102106

103107
- `--bcc` sets blind carbon copy email addresses.
@@ -110,18 +114,6 @@ The following optional parameters are available in Azure CLI.
110114

111115
- `--attachment-types` sets the list of email attachment types, in the same order of attachments.
112116

113-
Also, you can use a list of recipients with `--to`, similar to `--cc` and `--bcc`.
114-
115-
116-
## Get the status of the email delivery
117-
118-
We can keep checking the email delivery status until the status is `OutForDelivery`.
117+
Also, you can use a list of recipients with `--cc` and `--bcc` similar to `--to`. There needs to be at least one recipient in `--to` or `--cc` or `--bcc`.
119118

120-
```azurecli-interactive
121-
az communication email status get --message-id "\<messageId\>"
122-
```
123-
124-
- Replace "\<messageId\>" with the messageId from the response of the send request.
125-
126-
[!INCLUDE [Email Message Status](./email-operation-status.md)]
127119

0 commit comments

Comments
 (0)