Email templates #10701
kristian240
started this conversation in
Feature Requests & Ideas
Email templates
#10701
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I have a requirement and I have few ideas to tackle it but I want to find out your opinion and maybe we can implement better solution in the Payload. I use SendGrid as email provider and in order to send email I have 2 options.
One option is to generate HTML in my app and use SendGrid to send the email. This option is straight forwards since Payload expect to be the one to generate the HTML.
Second option is to generate HTML on SendGrid using SendGrid templates. To send an email this way I need to create a POST request with the template id and payload.
Feature I'm starting with is the forgot password email. To send an email using SengGrid I need to
disableEmail
setting inauth.forgotPassword
?)My ideas
generateEmailHTML
return object instead of string and handle that in custom email adapter. Issue here are the types.generateEmailHTML
andgenerateEmailSubject
and send custom email in after forget password operation hookBeta Was this translation helpful? Give feedback.
All reactions