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
- How to use Sites on selfhosted appwrite
whenever I try to create a site even with template it says 404 nginx error
- How to send Webhooks to internal network
When saving the URL for sending Webhooks, Appwrite checks if it's a valid external domain name so entering internal IP address or docker hostnames won't save th...
- Collections list not showing up when try...
I'm trying to create new relationship attribute but both one way and two way relationship is not showing up collections list to connect with my relationship att...