Resend sending emails domain error
Unanswered
Spectacled bear posted this in #help-forum
Spectacled bearOP
Hello guys, I have successfuly set up a resend account and validated my domain to send the emails with. But unfortunately with the following code I get an invalid domain error even though in the dashboard it says that I can start using it.
This is the code that I'm using it with:
error:
This is the code that I'm using it with:
try {
const data = await resend.emails.send({
from: "student-ai.io",
to: [emailData.email],
subject: "Your trial has started!",
react: EmailTemplate({ firstName: "To StudentAI" }),
});
} catch (error) {
console.log(error);
}error:
{
name: 'validation_error',
message: 'The domain is invalid',
statusCode: 400
}