-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
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
Add Resend Email setup #24
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🔴 Build failed because there is no |
@shrix1 Yo ty for this! Let's resolve the conflicts! I will add resend api into server env variables *Edit: env var added! |
@shrix1 is attempting to deploy a commit to the PearAI Team on Vercel. A member of the Team first needs to authorize it. |
Add Resend in |
We can simply set this up with Resend and Supabase only, without any changes to the code following this guide: https://resend.com/blog/how-to-configure-supabase-to-send-emails-from-your-domain Supabase allows us to change email templates in supabase itself. |
Supabase only allow signup, login, magiclink templates right, with this integration we can add marketing emails aswell eg: we can send welcome email with pricing on it |
Ah I see. Makes sense. |
For signup and login email with supabase intergration is super simple in a one click of a button ![]() |
This will be essential needed for
|
Looks like got some prettier errors. Run This is still great and needed! Will increase priority on this as we reach public launch |
Got it |
@Fryingpannn should probably try to get this integrated sooner than later |
@shrix1 Great work on this one, we kinda need it now. But it seems it's better if this is built from our Python backend server instead of the landing page 💀. There could be times where backend finishes something (e.g. stripe cancellation), then needs to send email. In which case if it's only here, the backend would have to send a request to the nextjs backend. That is not ideal. Do you think you can help with this? 🙏 Alternatively, we can just have resend in both lmao, since it's already made here. If we fix the current conflicts, I can try to get this in first. Then gradually we switch to python backend once it's needed. |
@Fryingpannn I don't know much about Django, but I'll look into it 🫡. There's also a Resend Python SDK, so I'll try using that as well. |
Awesome. Check in with @Ellahinator on discord, I think he started it! |
yaa i saw discord, he is testing with resend , cool |
Added
Resend
andReact-email
(for email components form resend) packageAdded
EmailWrapperComponent
andselectTemplate
functions to select template based on request bodyAdded dummy
WelcomeTemplate
ComponentAdd keys to
.env
add and verfiy domain here
curl call to test locally (
to
field can be arrayOfEmail or oneEmail )Supabase SMTP setup here - https://resend.com/settings/integrations for signup/otp mails
Based on : #21