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

<asp:PasswordRecovery>

P: n/a
Currently, the email that gets sent to a user with a new password is
very cryptic:

Please return to the site and log in using the following information.
User Name: nedkraushaar
Password: @(])1L7s!.xUD5

I would like to add some additional text and found that one can use
custom text specified in a text file by using the <MailDefinition> tags
within the <asp:PasswordRecovery> tags such as below:

<MailDefinition From="in****@velociteach.com"
Subject="Your new password"
BodyFileName="/docs/PasswordMail.txt"
IsBodyHtml="True"
Priority="Normal"
</MailDefinition>

Problem is keeping UserName and Password in the letter. I'm wondering
if this text file needs to be generated on the fly to include the
user's information in the OnSendingMail event of the password recovery
control or if there is a better way.

Ned

Jun 5 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
We can write our own "PasswordMail.txt" file and we can include two optional
expressions in the body of the .txt file to be sent. I have not tried using
HTML. I send ASCII text. Keep it brief and written with clarity. I also
include the name of a company or domain in the subject which helps
communicate more clearly.

UserName: <%UserName%>
New Password Code: <%Password%>
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
<ne***********@earthlink.net> wrote in message
news:11**********************@c74g2000cwc.googlegr oups.com...
Currently, the email that gets sent to a user with a new password is
very cryptic:

Please return to the site and log in using the following information.
User Name: nedkraushaar
Password: @(])1L7s!.xUD5

I would like to add some additional text and found that one can use
custom text specified in a text file by using the <MailDefinition> tags
within the <asp:PasswordRecovery> tags such as below:

<MailDefinition From="in****@velociteach.com"
Subject="Your new password"
BodyFileName="/docs/PasswordMail.txt"
IsBodyHtml="True"
Priority="Normal"
</MailDefinition>

Problem is keeping UserName and Password in the letter. I'm wondering
if this text file needs to be generated on the fly to include the
user's information in the OnSendingMail event of the password recovery
control or if there is a better way.

Ned

Jun 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.