# Getting 500 on execute-actions-email API

**URL:** <https://forum.keycloak.org/t/getting-500-on-execute-actions-email-api/10871>\
**Category:** Getting advice\
**Created:** [September 6, 2021, 6:06am UTC](https://forum.keycloak.org/t/getting-500-on-execute-actions-email-api/10871 "2021-09-06T06:06:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![divya](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@divya](https://forum.keycloak.org/u/divya)\
**Post date:** [September 6, 2021, 6:06am UTC](https://forum.keycloak.org/t/getting-500-on-execute-actions-email-api/10871/1 "2021-09-06T06:06:42Z")

</div>

Details of the API are as follows:  
**API** : https://{servername:port}/auth/admin/realms/{realm}/users/{userId}/execute-actions-email  
**Request body** : [“UPDATE\_PASSWORD”]

Screenshot of the error is attached as below:  
 ![failed send email](https://global.discourse-cdn.com/free1/uploads/keycloak/original/2X/5/5c0e91b5d9220436ea45399767350840c33f4bcd.png)

Please help me.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![amir](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@amir](https://forum.keycloak.org/u/amir)\
**Post date:** [October 31, 2021, 9:31am UTC](https://forum.keycloak.org/t/getting-500-on-execute-actions-email-api/10871/2 "2021-10-31T09:31:04Z")

</div>

@divya did you ever get it to work?

---

<div class="post-metadata">

**Author:** ![xgp](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/xgp/32/2589_2.png) [@xgp](https://forum.keycloak.org/u/xgp)\
**Post date:** [November 1, 2021, 7:49am UTC](https://forum.keycloak.org/t/getting-500-on-execute-actions-email-api/10871/3 "2021-11-01T07:49:43Z")

</div>

A few ideas:

1. Do you have your SMTP settings configured properly? I.e. can you go into the “Realm Settings”-\>“Email” tab of the admin UI and click “Test connection”.
2. Does the user you are calling the method for have an email address set?
3. Have you looked in the Keycloak logs to see if there is an exception thrown?

---

<div class="post-metadata">

**Author:** ![amir](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@amir](https://forum.keycloak.org/u/amir)\
**Post date:** [November 4, 2021, 3:29pm UTC](https://forum.keycloak.org/t/getting-500-on-execute-actions-email-api/10871/4 "2021-11-04T15:29:18Z")

</div>

@xgp where can I check the keycloak logs exactly ?  
I’m running my keycloak server both locally and from a docker container

---

<div class="post-metadata">

**Author:** ![xgp](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/xgp/32/2589_2.png) [@xgp](https://forum.keycloak.org/u/xgp)\
**Post date:** [November 4, 2021, 4:12pm UTC](https://forum.keycloak.org/t/getting-500-on-execute-actions-email-api/10871/5 "2021-11-04T16:12:58Z")

</div>

If you are running via docker the `docker logs` command is your friend: [docker logs | Docker Documentation](https://docs.docker.com/engine/reference/commandline/logs/)  
In the container, logs should be in `/opt/jboss/keycloak/standalone/log/`  
Also, depending on your command to startup the docker container, it also usually outputs to stdout.

If you are running locally from the distribution, logs are in `<keycloak_dir>/standalone/log/`
