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
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...
- Can't login or deploy functions in Appwr...
Hello, since i updatet to the appwrite cli 6.1.0 i can't login or deploy functions with the cli. When i call the command: "appwrite get account --verbose" i ge...
- Create admin user?
I'm not really sure how this is supposed to work, I installed Appwrite through docker-compose and set it up. When I launched the app and went into it, I created...