Skip to content
Back

Having trouble with email OTP

  • 0
  • Auth
valmhor
22 Aug, 2025, 13:14

It seems like I'm having trouble with receiving the email with the otp from appwrite services.

This is the general headers request:

TypeScript
Request URL
https://fra.cloud.appwrite.io/v1/account/tokens/email
Request Method
POST
Status Code
201 Created

This is the body request:

TypeScript
{
  "userId": "my user id", // replaced 
  "email": "my personal email @gmail.com" // replaced
}

This is the response body:

TypeScript
{
    "$id": "68a86b4736bf11211d96",
    "$createdAt": "2025-08-22T13:06:15.224+00:00",
    "userId": "my user id", // replaced
    "secret": "",
    "expire": "2025-08-22T13:21:15.224+00:00",
    "phrase": ""
}

In fact yesterday it worked well and also the days before. Unfortunately today I'm not receiving the otp mail from appwrite as usual.

The implementation is js:

TypeScript
  public readonly createEmailToken = async (
    userId: string,
    email: string,
  ): Promise<Models.Token> => {
    try {
      return await this._account.createEmailToken(userId, email);
    } catch (error) {
      this._logger.error('Failed to create email token:', error);
      throw error;
    }
  };

dependency: "appwrite": "^18.2.0".

Is there something I can check to have an idea of the issue?

TL;DR
Developers having issue receiving email OTP from Appwrite services. Email OTP not coming through as usual despite successful requests. Authentication process handled through JS with Appwrite dependency version 18.2.0. Check SMTP settings, spam folder, and email server logs for clues about the issue.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more