My web app sends “forgot password” and other emails. I’d like to have email body template somewhere in a file, so that each customer can change the way the “forgot password” email looks.
For example:
Dear App Name user,
Your new password is: %password%
Your App Name Team.
I understand that the message body can go into a file, but how do I replace %password% from my Java code?
Any other ideas how this should be done?
You can use:
Basically, you can use
%sas a placeholder which will be filled with the password by String.format