Hello,
I imported a set of users by excel using a data integration.
Imported users haven´t password, i want that all the imported users can set a password by themselves.
My idea is send a marketing mail to all this users. In this mail i want to generate a link that will go to my "ChangePassword" page.
I tried to use the GetString("DWPasswordRecoveryUrl") and GetString("DWUsers:User:PasswordRecoveryUrl") values but it doenst work
Here is my set password email template code:
@inherits RazorTemplateBase<RazorTemplateModel<Template>> @using Dynamicweb.Rendering; @using System.Web; @using Dynamicweb.Security.UserManagement; @MasterPageFile("../../Designs/Rapido/EmailMaster.cshtml") @Include("../../Designs/Rapido/EmailHelpers_NAS.cshtml") @CreatePreheader() <table bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="0" width="500" id="emailBody"> @RenderHeaderSection() @RenderMessage() @RenderMessageGraciasConfianza() @RenderFooterContact() @RenderFooterSocial() @RenderFooterLegal_NAS_B2C() </table> @helper RenderHeaderSection() { @RenderHeaderImage(); } @helper RenderMessage() { Column message = new Column(); message.header = Translate("Set a passowrd"); message.text.Add("PasswordRecoveryUrl "+ GetString("DWUsers:User:PasswordRecoveryUrl")); //doesnt work message.text.Add("<a href='login?Username={{Email:User.UserName}}&PwToken={{Email:User.LoginToken}}&activate=true'>Click here to set your password</a>"); //it logins automatically @CreateRow(message); @RenderButton(GetString("DWPasswordRecoveryUrl"), "Set password"); //doesnt work }
Is there any way to get DWPasswordRecoveryUrl value or send my password emails?
Thanks,
Jose.