I've created an HTML file for my password recovery, however I am not able to override the default subject or get the body of the email to come out as html... Can someone help me, I am not sure what I am doing wrong...
Here is the method that fires the email.
private void prPassRecovery_SendingMail(Object sender, MailMessageEventArgs e)
{
_membershipUser = Membership.GetUser(prPassRecovery.UserName);
prPassRecovery.MailDefinition.BodyFileName = _passRecEmailURL;
prPassRecovery.MailDefinition.Subject = "Your password has been reset";
prPassRecovery.MailDefinition.IsBodyHtml = true;
// logic to force user to change password
_membershipUser.Comment = DateTime.Today.AddDays(-1).ToString();
Membership.UpdateUser(_membershipUser);
h.saveHistory(getIdentityID(_membershipUser.Email), ...
Go to the complete details ...