This is an interesting question you are asking. In fact, it is MAC One-time Password that will orchestrate the whole process.
It will use the Email One-time Password mechanism, as well as other Mapping Rules.
If you need to send different emails messages, depending on your context, I believe you cannot change the email_messsage_xml, but you can change this file, with an HTML document in <Message><Value>[![CDATA[ <html_document ]]> </Value></Message>
In this <html_document> you can configure it to select based on an MACRO what the user will see, using a known technique Singe Page Website (or One Page Website), by hidding all messages you don't want the user to see. This way you can embed in the same email message, multiple different messages, and select which is the one the user will see (all others will be hidden!)
I never tried this, but I believe it will work!
------------------------------
Joao Goncalves
Pyxis, Lda.
Sintra
+351 91 721 4994
------------------------------
Original Message:
Sent: Fri January 29, 2021 02:31 AM
From: krish krishna
Subject: customize otp email
Hello,
I want to customize the /authsvc/otp/delivery/email_message.xml this OTP email template? i want to include other macro (otp hint) here but not able to access, my requirement is to split @OTP_STRING@ or include otp hint in the otp email.
Also i want to understand how this email template is called , in USC Password Reset , here can i write my own email mechanism to include my own email template and also can i use different email templates for different policies ?
Regards
------------------------------
krish krishna
------------------------------