
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
- Suggest simple auth flow using just a cu...
Hi...i wanted to know how can we create a auth session using custom id and password. I can give each teacher and student some specific id and corresponding to ...
- Updating console to 1.8
Hey! Does anyone know how to update the appwrite console only? I am using console 1.7.4 but it has UI/UX issues 🙁
- Having errors migrating to cloud
Project will not migrate compeltely
