By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,454 Members | 3,208 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,454 IT Pros & Developers. It's quick & easy.

how to send recovered password with MailDefinition?

P: n/a
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="pe****@pjn.rr"
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
Jul 14 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.