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

how to send recovered password with MailDefinition?

P: n/a

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?

<asp:PasswordRecovery ID="PasswordRecovery1" runat="server"
<MailDefinition IsBodyHtml="true" BodyFileName="pw2.txt"
Subject="yor new password"/>

Protected Sub PasswordRecovery1_SendingMail(ByVal sender As Object, ByVal e
As System.Web.UI.WebControls.MailMessageEventArgs) Handles
e.Message.Body = e.Message.Body.Replace("##user##",
e.Message.Body = e.Message.Body.Replace("##password##",
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.