python-keycloak
python-keycloak copied to clipboard
send_verify_email throwing an error 'Failed to send execute actions email'
Hi I am trying to send a verification email for a created user as below:
try: keycloak_admin = KeycloakAdmin(server_url=server_url, username=admin_username, password=admin_password, realm_name="master", verify=True) keycloak_admin.realm_name = "test_perf" user_id_keycloak = keycloak_admin.get_user_id("[email protected]") response = keycloak_admin.send_verify_email(user_id=user_id_keycloak) return response; except Exception as error: return repr(error)
However when I execute this I get the error -
KeycloakGetError(b'{"errorMessage":"Failed to send execute actions email"}')
Could you please let me know where I could be possibly going wrong? I am using Keycloak version 11.0.8
Keycloak tries to send the verification email. Did you configure a smtp server on keycloak side? (Followup question if you did: does it work if you do it manually in keycloak?)