I can't sent auth email I don't know what's happend
"use client";
import { account, databases } from "@/lib/appwrite";
import { useState } from "react";
import { ID } from "appwrite";
export const useRegisterUser = () => {
const [loading, setLoading] = useState(false);
const [error, setError] = useState(null);
const registerUser = async (data) => {
setLoading(true);
setError(null);
try {
// create user appwrite
const user = await account.create(ID.unique(), data.email, data.password);
// Send verification email
await account.createVerification("http://localhost:3000/verify-email");
setLoading(false);
return { success: true, user };
} catch (error) {
setLoading(false);
setError(error.message);
return { success: false, error };
}
};
return { loading, error, registerUser };
};
why i can't send createVerification ?? i configure my SMTP in appwrite
my messages with the same config is working
"role: guest" means you're not logged in. You need to create a session first
ok i will try
i saw to .env but there is no SMTP option
You must configure something in your .env
i did
but still nothing
i was trying figurout it by couple of hours
i think is something serious because i found this https://github.com/appwrite/appwrite/discussions/4932
i have same issue
Recommended threads
- Does 1.9.0 Self Hosted have MongoDB Atla...
I have been playing with the new 1.9.0 update and I am really excited for the MongoDB support. I wanted to ask though if at the current time Appwrite supports b...
- RBAC design question
Hi, I am trying to create RBAC so we will have multiple orgs in the app each org will have 3 roles (admin, member and read only) what is the best way to go ab...
- significant increase in CPU usage with 1...
Hi, This is no big deal at all (as everything is working great so far), but I just saw that the update (from 1.8 to 1.9) consumes much more CPU than before (re...