Hi Everyone, working on a temporary password generation method where i want to send password in email template for a user to login with that credentials
How to append the dynamically generated password to email template and send a mail to user
As generate password is available in sever action and email template in interface how to bind the generated password to email template?
Thanks advance
Hello @Anush Kumar ,
It really depends on what triggers this email and password generation, but for a general case you can follow this guide:
Include an Input Parameter for the Password
Create the Server Action for Sending the Email
Generate the Temporary Password
Bind the Generated Password to the Email Parameter
Optional Enhancements
@Mihai Melencu Thanks for the solution it worked..!!
Hi,
In your email template, you must include the password's placeholder as {password}. Then, pass the generated password to the email and replace {password} with the generated password.
how to pass the generated password as it is in sever action & email template in interface
Keep the input parameter in the email template and replace the password placeholder
There are already some post which discussed about it
https://www.outsystems.com/forums/discussion/100519/sending-email-temporary-password/
https://www.outsystems.com/forums/discussion/100427/sending-an-email-to-users-with-temporary-password-with-username/#Post436163
but I think sending a temporary password is not a good idea rather then send a link to set new password with a simple code (verification code) is better solution.
https://www.youtube.com/watch?v=QKqXKJdqBuY