https://supertokens.com/ logo
overriding email verification and password reset emails
e

error404

04/20/2023, 2:19 PM
Hey, @rp just wanna clarify some information, I'm implementing thirdpartyemailpassword, and have already overwritten api callbacks, now need to override email for verification and password reset, should I place this implementation along with my api callbacks override, or elsewhere? And to send some specific content, I should not use originalImplementation.getContent, but instead add my own info and pass it back, am I right?
r

rp

04/20/2023, 2:20 PM
hey @error404
you mean you want to override the contents of the emails?
e

error404

04/20/2023, 2:20 PM
Yep
r

rp

04/20/2023, 2:20 PM
cause that can be done by providing your own implementation to getContent (as you figured)
and not call the original implementation in that function
e

error404

04/20/2023, 2:22 PM
Okay, about where to place this code, I've understood it correctly?
r

rp

04/20/2023, 2:22 PM
see the email delivery section in our docs for your recipe
e

error404

04/20/2023, 2:23 PM
Got it, thank you