public bool SendForgetPasswordEmail(int UserId, string Email, string FirstName, string LastName, string Password) { try { string htmlBody = ""; string headerText = "Hi <b> " + FirstName + " " + LastName + " ,</b>"; string startTable = "<table>"; string emailText = "<tr><td><br/>You have requested to get your password this is your password below:-</br></br></td></tr>"; emailText += "<tr><td>UserName:<b> " + Email + "</b></td></tr>"; emailText += "<tr><td>Password:<b> " + Password + "</b></td></tr>"; emailText += "<tr><td>Regards</td></tr>"; emailText += "<tr><td><b>Pabla Accounting And Tax Services</b></td></tr>"; string endTable = "<br/></table> </br> </br> Thanks"; htmlBody = headerText + startTable + emailText + endTable; customMethod.SendEmail(Email, "Credential Information", htmlBody, ""); return(true); } catch { return(false); } }