@@ -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,5 @@ 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 ` .
119-
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 )]
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 ` .
127118
0 commit comments