Reputation: 125
When I send my first email from Azure Communication Services (az communication email send) it accepts the send email request, returning a MessageId. When I query that MessageId using "az communication email status get" it seems stuck at "status": "OutForDelivery", and no message email arrives.
Any idea what might be the problem?
Upvotes: 2
Views: 3566
Reputation: 125
I used the wrong kind of double quote when specifying the recipient:
--to "reciever mail” (U+201D)
instead of :
--to "reciever mail" (U+0022)
which I guess became part of the address!
Upvotes: 1
Reputation: 5506
If you want to send an email to a user using ACS you need to configure the below
Have you checked your inbox, junk or spam folders still you didn't find the sent email? then
I would suggest you to enable diagnostics logging for your Acs resource and query the ACSEmailStatusUpdateOperational logs (provides message and recipient level delivery status updates related to the Email service send mail requests) to check the status of the message
Refer to these documentations for more information about how to enable diagnostic logging and also about different supported email logs in ACS
Note : MessageID will be the correlationId in this table.
If your message delievery status was showing as OutForDevlivery and you have checked all the folder and you did'nt receive email then email might in queued state.
I would suggest you to raise a support ticket and to understand why the Email not yet delivered.
Upvotes: 0
Reputation: 11208
It is working fine for me and i have used below process:
Used below command:
az communication email send --sender "[email protected]" --subject "Important" --to "reciever mail" --text "Hello Rithwik, How are you" --connection-string "endpoint=https://rithcon.communication.azure.com/;accesskey=zabZ3yu3w=="
Output:
Then checked the status:
az communication email status get --message-id "431a86" --connection-string "endpoint=https://rithcon.communication.azure.com/;accesskey=zabZ3ywNYx73w=="
Output:
Now received mail as below:
So the problem you are facing is at receiving end(problem is with recipient's email server), so you need to check if its in spam, or blocked. See id there is a filtering block. So the process is correct only the problem is with recipient.
Upvotes: 0