Dear All,
by default, the asp.net identity system (WebForms template) sends the authentication confirmation message with this code:
manager.SendEmail(user.Id, "Confirm your account", "Please confirm your account by clicking <a href=\"" + callbackUrl + "\">here</a>")
If I want to manipulate the message (as suggested in http://forums.asp.net/t/2026812.aspx?How+can+i+add+html+email+template+UI+for+email+confirmation+in+asp+net+mvc5+identity+2+), we can enhance the message by changing the code as follows:
Dim message As String = "<h3>Hi, Name</h3>" + "<p>thank you for signing up.</p>" + "<p>Please confirm your account <a href=""" & callbackUrl & """>here</a></p>" manager.SendEmail(user.Id, "Confirm your account", message)
However, how can we:
- Add to this message the name of the registered user name (please note that I have already added within the registration process and in the AspNetUsers table the FirstName)?
- Possibly using an html template?
Thanks