views:

28

answers:

2

I have currently setup a basic membership system in ASP.NET and have used the

<asp:PasswordRecovery ID="PasswordRecovery1" Runat="server"></asp:PasswordRecovery>

To deal with the password recovery, Which Works great but how would one customise the e-mail such as changing the"Subject" and the actual body content of the e-mail ?

+1  A: 

You can edit the MailDefinition settings.

MailDefinition-BodyFileName="uri"
MailDefinition-CC="string"
MailDefinition-From="string"
MailDefinition-IsBodyHtml="True|False"
MailDefinition-Priority="Normal|Low|High"
MailDefinition-Subject="string"
Brandon
+1  A: 

Implement the OnSendingMail event for the passwordrecovery control.

the parameter (MailMessageEventArgs e) is the MailMessage object and you can update the subject/body etc fields before the message is actually sent.

senloe
+1 good answer.
Sky Sanders