Skip to content
Back

Trouble with Email OTP

  • 0
  • Auth
  • Cloud
Siyamak45
24 Aug, 2025, 07:20

In the past 48 hours, many new users have been unable to verify their emails. We also disabled the custom SMTP, but there are still issues with sending verification emails to our users.

No changes have been made to the application code, and the service has been running smoothly for months without any problems.

My project ID in Appwrite Cloud is 64e0babf09b5707326c2 and it has more than 11,000 users. Please review this issue as soon as possible.

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': '68aa2d73062fa6305832',
 '$createdAt': '2025-08-23T21:06:59.027+00:00',
  userId: '668bf5380031dbb5b56c',
  secret: '345469',
  expire: '2025-08-23T21:21:59.025+00:00',
  phrase: '' 
}

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;
    }
  };

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

TL;DR
Issue: Users are not receiving verification emails for the project, even after disabling custom SMTP. No recent changes in the code. Possible Solution: Check the implementation of the `createEmailToken` function in the JavaScript code for any errors in sending the verification emails.
wombatom
24 Aug, 2025, 07:24

Hi, I have the same problem with my project, users can request magic links but they are not being received

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