We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
what is the best way to avoid sending emails in non-production environments?
is it to add a MockResend class or is there a param I can pass to the constructor?
The text was updated successfully, but these errors were encountered:
Do you want to send actual emails to inbox or just sending to for example success@resend.dev and returning a success event would work?
success@resend.dev
Sorry, something went wrong.
just a fake success response, something like this:
class MockResend extends Resend { sendEmail = async (data: SendEmailData): Promise<SendEmailResponse> => { const { react, ...rest } = data; const { props } = react; log("Would have sent email in production", { ...rest, props }); return { id: "xxx", created_at: "xxx", } as SendEmailResponse; }; }
It's not yet documented, but we worked on sending emails with our testing emails. So try sending an email to and let me know
bounces@resend.dev
No branches or pull requests
what is the best way to avoid sending emails in non-production environments?
is it to add a MockResend class or is there a param I can pass to the constructor?
The text was updated successfully, but these errors were encountered: