# Verification emails are not sent and stuck 'pending'

**URL:** <https://community.auth0.com/t/verification-emails-are-not-sent-and-stuck-pending/107564>\
**Category:** Get Help\
**Tags:** emails, management-api\
**Created:** [May 22, 2023, 7:12pm UTC](https://community.auth0.com/t/verification-emails-are-not-sent-and-stuck-pending/107564 "2023-05-22T19:12:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabrielius.lotuzis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gabrielius.lotuzis/32/44974_2.png) [@gabrielius.lotuzis](https://community.auth0.com/u/gabrielius.lotuzis)\
**Post date:** [May 22, 2023, 7:12pm UTC](https://community.auth0.com/t/verification-emails-are-not-sent-and-stuck-pending/107564/1 "2023-05-22T19:12:37Z")

</div>

Hello,

I’m trying to test out the script in test tenant for user migration and unable to send a verification email. For that, I’m creating and verifying a mock user. I start by calling `/api/v2/users` endpoint with the following payload:

```json
{
  email: '{user email}',
  email_verified: false,
  connection: 'Username-Password-Authentication',
  password: '{random password}'
}

```

Then I’m trying to verify it’s email via `/api/v2/jobs/verification-email` with the following payload:

```json
{
  user_id: {user_id from previous response}
}

```

I get something like this:

```json
{
  type: 'verification_email',
  status: 'pending',
  created_at: '2023-05-22T18:05:05.826Z',
  id: 'job_cduoTtMq5EKkAzD0'
}

```

I have created multiple users but the result is the same whenever I check it through the job id. Although, I’m able to trigger and receive test mail none of that applies to verification emails. Would appreciate any insight why it’s stuck.

---

<div class="post-metadata">

**Author:** ![gabrielius.lotuzis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gabrielius.lotuzis/32/44974_2.png) [@gabrielius.lotuzis](https://community.auth0.com/u/gabrielius.lotuzis)\
**Post date:** [May 23, 2023, 6:29am UTC](https://community.auth0.com/t/verification-emails-are-not-sent-and-stuck-pending/107564/2 "2023-05-23T06:29:59Z")

</div>

It turns out that I haven’t toggled verification email template 🙂

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 23, 2023, 10:28am UTC](https://community.auth0.com/t/verification-emails-are-not-sent-and-stuck-pending/107564/3 "2023-05-23T10:28:48Z")

</div>

no worries! We’ve all been there! Glad it’s working for you now!

---

<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:** [June 6, 2023, 10:29am UTC](https://community.auth0.com/t/verification-emails-are-not-sent-and-stuck-pending/107564/4 "2023-06-06T10:29:02Z")

</div>

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