# How do I control the application associated with verification emails?

**URL:** <https://community.auth0.com/t/how-do-i-control-the-application-associated-with-verification-emails/7757>\
**Category:** Get Help\
**Tags:** verification-email\
**Created:** [August 5, 2017, 2:54am UTC](https://community.auth0.com/t/how-do-i-control-the-application-associated-with-verification-emails/7757 "2017-08-05T02:54:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dan.rumney](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.rumney/32/7840_2.png) [@dan.rumney](https://community.auth0.com/u/dan.rumney)\
**Post date:** [August 5, 2017, 2:54am UTC](https://community.auth0.com/t/how-do-i-control-the-application-associated-with-verification-emails/7757/1 "2017-08-05T02:54:22Z")

</div>

I’m using a non-interactive client to create users that can then log in via my SPA client.  
The users are being created without problem, but the verification email uses the non-interactive client’s name instead of my SPA client’s name.

Is there a way to change this, without hardcoding the SPA client’s name in the verification email template?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [August 7, 2017, 7:18pm UTC](https://community.auth0.com/t/how-do-i-control-the-application-associated-with-verification-emails/7757/2 "2017-08-07T19:18:03Z")

</div>

You should be able to accomplish your goal if you take a two-step approach to the problem:

1. Create the user by using the POST `/api/v2/users` [endpoint](https://auth0.com/docs/api/management/v2#!/Users/post_users); as part of the payload include `"verify_email": false` so that the verification email is not sent immediately.
2. Request a verification email to be sent by using the POST `/api/v2/jobs/verification-emai` [endpoint](https://auth0.com/docs/api/management/v2#!/Jobs/post_verification_email); **as part of the payload you would include `"client_id": "[spa_client_id]"` so that the verification email is sent within the context of the desired client application**.

---

<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 2, 2018, 5:55am UTC](https://community.auth0.com/t/how-do-i-control-the-application-associated-with-verification-emails/7757/3 "2018-03-02T05:55:46Z")

</div>


