<asp:PasswordRecovery>

N

ned.kraushaar

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="(e-mail address removed)"
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
 
C

clintonG

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/
 

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,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top