RESEND email integration

Hello! I recently inegrated RESEND email for my websites shop. The /test-email works fine but when acting as a user of the deployed website, I do not receive an email notification in my gmail.
Can you please help?
Thank you! :melting_face:
@amyegan @alex-hawley @ethanshea @jacobparis
I am tagging random people for help lol.

Have you checked your resend dashboard? It shows the reason why the mail is not sent.

1 Like

Hi! Yes, it only works from the vercel app email test module. If i go to my deployed site and try to complete an order, no email notification is sent.

It didn’t give me any useful information.
It seems that everything is fine on the resend side. I believe the issue is vercel. I can send test emails from inside vercel.
@amyegan @spencerattick @ethanshea @nateclev @dcoy @sharath39 @jacobparis @lucleray any advice?
Sorry for blowing you up I am very confused.
Thank you!!

Are you trying to send an email to your self only or to other mail?

Cause resend doesn’t allow a mail to be sent to yourself only when deployed

2 Likes

So i need to have my email, and an additional email for the notification to be sent to???

Thank you so much for the reply bro.

1 Like

Yes, just don’t send mail to yourself in deployment.

So if you are using suppose: <your_name>@gmail.com in from field so in the to field don’t insert <your_name>@gmail.com again. It will cause resend to cause the error since they don’t support this in deployed version.

1 Like

Sorry bro I am confused. I have one email I am using for this. Could you explain me step by step where to go from here? I apologize lol. Thank you!!

1 Like

Just don’t use that mail in the “to” field of resend.

1 Like

Okay, I think I get it, where can I change this?? Do I leave the “to” field blank? Sorry, still a little confused. The notification from the site store needs to go somewhere.

It would be in your code. Not in resend.

Just check the code you have written for resend to use the user’s email rather than your’s.

I need to receive an email notification every time the user creates an order, so they would receive an email, and so would i. How do i get both?

1 Like

Use any other mail of your’s and for the users same.

You can call two functions of Resend in your code for it.

1 Like

Still confused, can you please tell me step by step? I have one email i have given vercel. What do i do next? Can you write the prompt for me please??? :folded_hands: :melting_face:

@vercelscott @amyegan @nateclev @simonstrumse @jacobparis @thomasrosen-brandung
Can you help please?

I’m not sure I know exactly what step you need help with. But there are some existing resources you can use to copy code and read about Resend configuration. Please give these a try and let us know how it goes!

Hope that helps!