# Still can't convince create password change ticket to send an email

**URL:** <https://community.auth0.com/t/still-cant-convince-create-password-change-ticket-to-send-an-email/183557>\
**Category:** Get Help\
**Tags:** emails, management-api\
**Created:** [March 8, 2025, 6:13am UTC](https://community.auth0.com/t/still-cant-convince-create-password-change-ticket-to-send-an-email/183557 "2025-03-08T06:13:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpatnode](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mpatnode/32/60368_2.png) [@mpatnode](https://community.auth0.com/u/mpatnode)\
**Post date:** [March 8, 2025, 6:13am UTC](https://community.auth0.com/t/still-cant-convince-create-password-change-ticket-to-send-an-email/183557/1 "2025-03-08T06:13:20Z")

</div>

Was trying to do the trick of using a password change ticket to send a new user welcome mail that has them set their password prior to first login. Added a lovely template to my “Change Password (Link)” template. Enabled and hit the “Try” button which worked great.

So I pre-create my user, and then send a password-change with the following payload:

```auto
  payload = {
            "email": email,
            "ttl_sec": 604800, # 7 days as recommended in design doc
            "mark_email_as_verified": True, # Keep this as a safeguard
            "connection_id": os.environ.get('AUTH0_CONNECTION_ID'),
            "client_id": os.environ.get('AUTH0_CLIENT_ID')
        }

```

See all sorts of “Create a password change ticket” happiness in the log and never see an email.

I found a number of 2018 posts that say “Create a password change ticket” DOES NOT send an email, but then found others that conflict with that statement. What’s the final word?

Oh, and if it doesn’t, why tease us with an email template (2 if you count the “(Code)” version)

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [March 10, 2025, 1:51pm UTC](https://community.auth0.com/t/still-cant-convince-create-password-change-ticket-to-send-an-email/183557/3 "2025-03-10T13:51:50Z")

</div>

Hi @mpatnode

Welcome back to the Auth0 Community!

Correct me if I’m wrong but based on the logs in your tenant and the description you are using the this endpoint → [Auth0 Management API v2](https://auth0.com/docs/api/management/v2/tickets/post-password-change) to generate the password reset URL. By using this endpoint you only generating the URL that you have to send to the customer → Auth0 in this flow won’t send any email

> Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow.

You want to use this Authentication API endpoint → [Authentication API Explorer](https://auth0.com/docs/api/authentication#change-password) if you want Auth0 to send emails

> **[Change Users' Passwords](https://auth0.com/docs/authenticate/database-connections/password-change)**
>
> Describes the different ways to reset users' passwords for your Auth0 applications.

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![mpatnode](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mpatnode/32/60368_2.png) [@mpatnode](https://community.auth0.com/u/mpatnode)\
**Post date:** [March 10, 2025, 4:43pm UTC](https://community.auth0.com/t/still-cant-convince-create-password-change-ticket-to-send-an-email/183557/4 "2025-03-10T16:43:59Z")

</div>

Wow 🤯 I had no clue there was a whole API hanging off the database connection. Ended up just crafting and sending the email in my app which has some other advantages, but I have to assume others have gone down the same path as I. Thanks for the clarification!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 24, 2025, 4:44pm UTC](https://community.auth0.com/t/still-cant-convince-create-password-change-ticket-to-send-an-email/183557/5 "2025-03-24T16:44:50Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
