Sometimes the jobs complete quickly but often the jobs remain in pending status which causes user confusion and increased support issues. The Auth0 application is configured to use a custom email provider (Mailgun).
Is there anything that can be done to make the jobs more reliable?
I understand that you have been encountering delays with sending the Verification Emails to your users.
Generally, when making a Verification Email Job using the Management API, it redirects the request to your custom email provider to assume the responsibility to send the verification email.
In this case, there could be something happening behind the scenes in Mailgun’s servers.
I would recommend that you please check Mailgun’s logs to see the behavior of the emails.
hey @rueben.tiow, thanks for replying! I had checked the Mailgun logs prior to posting this question. I can confirm Auth0 is not reliably submitting an email to Mailgun.
Here’s more context:
My application would create a verification email job by POSTing to /api/v2/jobs/verification-email
The response includes the job id
Every 30 seconds for ~30 minutes my application would GET /api/v2/jobs/{job id} … each time the job returned “pending” status.
My understanding is when Auth0 invokes the mailgun API to send the email the job would change to “completed” status and I would see the API call in the mailgun logs. It looks like neither are happening reliably.