我想在此代码中插入链接或href:
MailMessage mm = new MailMessage("sender@gmail.com", txtEmail.Text.Trim());
mm.Subject = "Password Recovery";
mm.Body = string.Format("Hi {0},<br /><br />Click on the link to change your password.<br /><br />Thank You.<br/><br/>IslandGas Team", username);
mm.IsBodyHtml = true;
在密码一词之后,页面重定向将显示一个链接。请帮帮我。
更新:
尝试了这个,但它没有阅读aspx
mm.Body = string.Format("Hi {0},<br /><br />Click <a href='forgotpassword(link).aspx'> here</a> to change your password<br /><br />Thank You.<br/><br/>IslandGas Team", username);