orbitkit icon indicating copy to clipboard operation
orbitkit copied to clipboard

Resend + React Email integration

Open ixahmedxi opened this issue 1 year ago • 4 comments

As a requirement for more authentication method (for example email + verification codes authentication) orbitkit needs to have some way of sending emails, Resend and it's library, react email, seems like the best option here.

We probably should have a packages/emails that will configure resend and export the resend instance to be used in apps as well as the email templates using react email. The package should be internal as that it will be used in the web application and we can utilise transpileModules in next.config.js to avoid the build step.

Steps to work:

  1. copy packages/core into new directory packages/emails
  2. do your thing with adding resend and react email
  3. add @orbitkit/emails to list of transpileModules in next.config.js file in apps/web
  4. profit

ixahmedxi avatar Apr 05 '24 21:04 ixahmedxi

can you add more details, about how would you like to have React Email, and Resend

I can work on it

Mahmoudgalalz avatar Apr 06 '24 09:04 Mahmoudgalalz

can you add more details, about how would you like to have React Email, and Resend

I can work on it

@Mahmoudgalalz thanks for the heads up, I have now added more information about this.

ixahmedxi avatar Apr 06 '24 12:04 ixahmedxi

Cool, I will define a template to use and make integration with it for nextjs

Mahmoudgalalz avatar Apr 06 '24 17:04 Mahmoudgalalz

https://github.com/ixahmedxi/orbitkit/issues/9#issuecomment-2081902464

duttaoindril avatar Apr 29 '24 05:04 duttaoindril