Skip to content

How to add URL to forgot password email? And how to custom that email? #1790

Answered by jacobsfletch
IRediTOTO asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @IRediTOTO, yes you can send email with Payload using the payload.sendEmail method as long as email has been configured. Here's the docs related to that: https://payloadcms.com/docs/email/overview#email-functionality

Then you can generate your own email using auth.forgotPassword.generateEmailHTML on your auth collection's config — more on that here: https://payloadcms.com/docs/authentication/config#forgot-password

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by IRediTOTO
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants