trypear / pear-landing-page

Landing page for PearAI, the Open Source AI-Powered Code Editor
https://trypear.ai
52 stars 77 forks source link

Add Resend Email setup #24

Open shrix1 opened 3 months ago

shrix1 commented 3 months ago
Screenshot 2024-06-08 at 1 33 52 AM

Supabase SMTP setup here - https://resend.com/settings/integrations for signup/otp mails

Screenshot 2024-06-08 at 1 51 32 AM

Based on : https://github.com/trypear/pear-landing-page/issues/21

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pear-landing-page ❌ Failed (Inspect) Aug 2, 2024 8:59pm
pear-landing-page-main ❌ Failed (Inspect) Aug 2, 2024 8:59pm
pear-landing-page-uwmp ❌ Failed (Inspect) Aug 2, 2024 8:59pm
shrix1 commented 3 months ago

🔴 Build failed because there is no RESEND_API_KEY

Fryingpannn commented 3 months ago

@shrix1 Yo ty for this! Let's resolve the conflicts! I will add resend api into server env variables

*Edit: env var added!

vercel[bot] commented 3 months ago

@shrix1 is attempting to deploy a commit to the PearAI Team on Vercel.

A member of the Team first needs to authorize it.

shrix1 commented 3 months ago

Add Resend in example.env file

Ellahinator commented 3 months ago

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.

shrix1 commented 3 months ago

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

Ellahinator commented 3 months ago

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.

shrix1 commented 3 months ago

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 https://resend.com/settings/integrations

Screenshot 2024-06-27 at 12 15 23 AM
Fryingpannn commented 3 months ago

This will be essential needed for

Fryingpannn commented 1 month ago

Looks like got some prettier errors. Run yarn prettier --write .

This is still great and needed! Will increase priority on this as we reach public launch

shrix1 commented 1 month ago

Looks like got some prettier errors. Run yarn prettier --write .

This is still great and needed! Will increase priority on this as we reach public launch

Got it

cqdev-co commented 4 weeks ago

@Fryingpannn should probably try to get this integrated sooner than later

Fryingpannn commented 2 weeks ago

@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.

shrix1 commented 2 weeks ago

@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.

Fryingpannn commented 2 weeks ago

@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!

shrix1 commented 2 weeks ago

@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