473,383 Members | 1,716 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

<asp:PasswordRecovery>

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
1 4305
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 thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.