how to send recovered password with MailDefinition?

A

Albert

Hi,

i want to send the recovered password using Maildefinition. But i don't find
any "password" to add to the control PasswordRecovery1 as body of the email.
It works but only the username is in the email, not the recovered password.
Any idea how to do that?
thanks
Albert

<asp:passwordRecovery ID="PasswordRecovery1" runat="server"
SubmitButtonText="send">
<MailDefinition IsBodyHtml="true" BodyFileName="pw2.txt"
From="(e-mail address removed)"
Subject="yor new password"/>
</asp:passwordRecovery>

Protected Sub PasswordRecovery1_SendingMail(ByVal sender As Object, ByVal e
As System.Web.UI.WebControls.MailMessageEventArgs) Handles
PasswordRecovery1.SendingMail
e.Message.Body = e.Message.Body.Replace("##user##",
PasswordRecovery1.UserName)
e.Message.Body = e.Message.Body.Replace("##password##",
PasswordRecovery1.????
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top