public static ForgotPasswordInfo ForgotPassword(string email) { User users = UserAuthentication.GetUserByEmailId(email); ForgotPassword forgotPassword; ForgotPasswordInfo forgotPasswordInfo = new ForgotPasswordInfo(); if (users == null) { forgotPasswordInfo.Success = false; forgotPasswordInfo.ErrorMsg = "Email address entered by you is not registered with us. Please enter the valid email address which you use for login."; return(forgotPasswordInfo); } UserAuthentication.SaveForgotPassword(users); forgotPassword = UserAuthentication.GetForgotPasswordByUserID(users.UserId); forgotPasswordInfo.Success = true; forgotPasswordInfo.ForgotPasswordId = forgotPassword.ForgotPasswordId; StringBuilder emailBody = new StringBuilder(ConstructMail.GetMailBody(Constant.FORGOT_PASSWORD)); emailBody = emailBody.Replace(Constant.CONST_USERNAME, users.FirstName).Replace(Constant.CONST_FORGOTLINK, forgotPassword.ForgotPasswordId.ToString()); emailBody = emailBody.Replace(Constant.CONST_FIRSTNAME, users.FirstName); emailBody = emailBody.Replace(Constant.CONST_LASTNAME, users.LastName); if (!SendMail.Sendmail(email, Constant.CONST_RESETPASSWORD_SUBJECT, emailBody.ToString())) { forgotPasswordInfo.Success = false; forgotPasswordInfo.ErrorMsg = "Error occurred while sending email. Please try again."; return(forgotPasswordInfo); } return(forgotPasswordInfo); }
protected void btnOk_Click(object sender, EventArgs e) { try { if (txtcaptcha.Text != string.Empty) { //Send mail to [email protected] StringBuilder emailBody = new StringBuilder(ConstructMail.GetMailBody(Constant.FEEDBACK)); emailBody = emailBody.Replace(Constant.FEEDBACK_USER_MAILID, txtFeedbackEmailAddress.Text); emailBody = emailBody.Replace(Constant.FEEDBACK_SUBJECT, txtFeedbackSubject.Text); emailBody = emailBody.Replace(Constant.FEEDBACK_COMMENT, txtFeedbackMessage.Text); SendMail.Sendmail(Constant.SUPPORT_EKNOWID_MAILID, Constant.FEEDBACK_MAIL_SUBJECT, emailBody.ToString()); //send mail to user emailBody = new StringBuilder(ConstructMail.GetMailBody(Constant.REPLY_TO_FEEDBACK)); SendMail.Sendmail(txtFeedbackEmailAddress.Text, Constant.FEEDBACK_REPLY_MAIL_SUBJECT, emailBody.ToString()); lblErrorCaptcha.Visible = false; ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "alert", "successPopup();", true); } } catch { lblErrorCaptcha.Text = "Error occurred.Please try again."; lblErrorCaptcha.Visible = true; txtcaptcha.Text = string.Empty; ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "alert", "setCaptchaTxtFocus();", true); } }
private static void SendUserActivationEmail(User user) { StringBuilder emailBody = new StringBuilder(ConstructMail.GetMailBody(Constant.Activate_UserAccount)); emailBody = emailBody.Replace(Constant.CONST_FIRSTNAME, user.FirstName); emailBody = emailBody.Replace(Constant.CONST_LASTNAME, user.LastName); emailBody = emailBody.Replace("[ACTIVATIONCODE]", user.ActivationCode.ToString()); emailBody = emailBody.Replace("[HOST]", Constant.Host); SendMail.Sendmail(user.Email, Constant.CONST_UserActivation_SUBJECT, emailBody.ToString()); }
public static LoginResult SignupUser(string FirstName, string MiddleName, string LastName, string EmailAddress, string Password, int?UserType) { LoginResult loginResult = new LoginResult(); User user = new User(); try { user.FirstName = FirstName.Trim(); user.MiddleName = MiddleName.Trim(); user.LastName = LastName.Trim(); user.Email = EmailAddress.Trim(); user.Password = EncryptionHelper.Encryptdata(Password); user.StateId = 1; user.SecQuestionId = 1; user.AccountRefId = 1; user.UserType = UserType; user.CompanyId = SessionWrapper.LoggedUser != null ? SessionWrapper.LoggedUser.CompanyId : null; user.IsActive = false; user.CreatedDate = DateTime.Now; Guid activationCode = CheckIfActivationCodeExist(Guid.NewGuid()); user.ActivationCode = activationCode; Repository <User> userRep = new Repository <User>(); userRep.Add(user); userRep.Save(); //if (UserType == (int)UserTypeEnum.ADMIN) //{ // Repository<User> userRepo = new Repository<User>("Email"); // SessionWrapper.LoggedUser = userRepo.SelectByKey(EmailAddress); //} loginResult.Success = false; loginResult.Message = "Successfully registered eknowId account for user " + FirstName.Trim() + " " + LastName.Trim() + ", an account activation link sent to email address - " + EmailAddress; StringBuilder emailBody = new StringBuilder(ConstructMail.GetMailBody(Constant.REGISTRATION_SUCCESS)); emailBody = emailBody.Replace(Constant.CONST_FIRSTNAME, user.FirstName); emailBody = emailBody.Replace(Constant.CONST_LASTNAME, user.LastName); emailBody = emailBody.Replace(Constant.CONST_USEREMAILID, user.Email); emailBody = emailBody.Replace(Constant.CONST_USERPASSWORD, Password); emailBody = emailBody.Replace("[HOST]", Constant.Host); emailBody = emailBody.Replace("[ACTIVATIONCODE]", user.ActivationCode.ToString()); SendMail.Sendmail(user.Email, Constant.CONST_REGISTRATION_SUBJECT, emailBody.ToString()); //SendUserActivationEmail(user); } catch { } return(loginResult); }
/// <summary> /// Send Resume Checker mail to support team. /// </summary> private static void SendResumeCheckMail() { try { StringBuilder emailBodyPaymentSupport = new StringBuilder(ConstructMail.GetMailBody(Constant.RESUME_CHECKER_SUPPORT)); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_FIRSTNAME, SessionWrapper.ResumeParserData.FirstName); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_LASTNAME, SessionWrapper.ResumeParserData.LastName); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_MOBILENO, SessionWrapper.ResumeParserData.Mobile); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_EMAILADDRESS, SessionWrapper.ResumeParserData.Email); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_CITY, SessionWrapper.ResumeParserData.City); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_STATE, SessionWrapper.ResumeParserData.State); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_ZIPCODE, SessionWrapper.ResumeParserData.ZipCode); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_SELECTPROFCLASS, Constant.CONST_DISPLAYNONECLASS); SendMail.Sendmail(Constant.ADMINEMAIL, Constant.CONST_FREE_RESUME_ANALYSIS_SUPPORT, emailBodyPaymentSupport.ToString()); } catch { } }
public static void SendFeebackMail(string emailId, string subject, string message) { try { //Send mail to [email protected] StringBuilder emailBody = new StringBuilder(ConstructMail.GetMailBody(Constant.FEEDBACK)); emailBody = emailBody.Replace(Constant.FEEDBACK_USER_MAILID, emailId); emailBody = emailBody.Replace(Constant.FEEDBACK_SUBJECT, subject); emailBody = emailBody.Replace(Constant.FEEDBACK_COMMENT, message); SendMail.Sendmail(Constant.SUPPORT_EKNOWID_MAILID, Constant.FEEDBACK_MAIL_SUBJECT, emailBody.ToString()); //send mail to user emailBody = new StringBuilder(ConstructMail.GetMailBody(Constant.REPLY_TO_FEEDBACK)); SendMail.Sendmail(emailId, Constant.FEEDBACK_REPLY_MAIL_SUBJECT, emailBody.ToString()); } catch { } }
public static ForgotPasswordInfo SetForgotPassword(string forgotID, string newPassword) { ForgotPasswordInfo forgotPasswordInfo = new ForgotPasswordInfo(); Repository <ForgotPassword> forgotPasswordRep = new Repository <ForgotPassword>("ForgotPasswordId"); ForgotPassword forgotPassword = forgotPasswordRep.SelectByKey(forgotID.ToString()); if (forgotPassword.IsUsed == true || 24 < DateTime.Now.Subtract(forgotPassword.ForgotDate).TotalHours) { forgotPasswordInfo.Success = false; return(forgotPasswordInfo); } Repository <User> userRep = new Repository <User>("UserId"); User users = userRep.SelectByKey(forgotPassword.UserId.ToString()); if (users != null) { users.Password = EncryptionHelper.Encryptdata(newPassword); users.LastLoginDate = DateTime.Now; userRep.Save(); forgotPassword.IsUsed = true; forgotPasswordRep.Save(); } forgotPasswordInfo.Success = true; StringBuilder emailBody = new StringBuilder(ConstructMail.GetMailBody(Constant.RESET_PASSWORD)); emailBody = emailBody.Replace(Constant.CONST_FIRSTNAME, users.FirstName); emailBody = emailBody.Replace(Constant.CONST_LASTNAME, users.LastName); emailBody = emailBody.Replace(Constant.CONST_USEREMAILID, users.Email); SendMail.Sendmail(users.Email, Constant.CONST_PASSWORD_CHANGE_NOTIFICATION_SUBJECT, emailBody.ToString()); //sendPasswordChangedNotificationEmail return(forgotPasswordInfo); }
public void SetSummaryData(string userName, string TransactionID, int orderID, string totalReportCost, string discountOffered) { //Show payment summary int selectedPlanId = SessionWrapper.OrderDetail.PlanId; string selectedProf; Decimal PlanPrice = 0; if (SessionWrapper.ModuleName != Constant.UNCOVER_BACKGROUND) { selectedProf = ProfessionHelper.GetProfessionNameById(SessionWrapper.OrderDetail.ProfessionId); PlanPrice = PlanHelper.GetPlan(SessionWrapper.OrderDetail.PlanId).Rate; Decimal discountRate = PlanHelper.GetPlan(SessionWrapper.OrderDetail.PlanId).RateOff; List <EknowIDModel.Report> reports = PlanHelper.GetPlanReports(selectedPlanId); } else { selectedProf = Constant.UNCOVER_BACKGROUND; } Decimal OptionalReportsPrice = 0; if (SessionWrapper.AlacartReportList.Count != 0) { List <int> alacartRptIDList = SessionWrapper.AlacartReportList; List <Report> alacartReportList = new List <Report>(); Report report; foreach (int reportID in alacartRptIDList) { report = new Report(); report = PlanHelper.GetReportByReportID(reportID); OptionalReportsPrice += report.Price.Value; } } lblName.Text = userName; lblTransID.Text = TransactionID; lblOrdNo.Text = orderID.ToString(); lblOptRptCost.Text = OptionalReportsPrice.ToString("C"); lblDiscountOffer.Text = "- " + discountOffered; lblPurchaseDt.Text = CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(DateTime.Now.Month) + " " + DateTime.Now.Date.ToString("dd") + " " + DateTime.Now.Year; lblTransAmount.Text = totalReportCost; lblSelectedProf.Text = selectedProf; if (SessionWrapper.ModuleName != Constant.UNCOVER_BACKGROUND) { lblPackageName.Text = PlanHelper.GetPlan(selectedPlanId).Name.ToString(); lblRptCost.Text = PlanHelper.GetPlan(selectedPlanId).Rate.ToString("C"); } //Payment Success mail to user StringBuilder emailBodyPayment = new StringBuilder(ConstructMail.GetMailBody(Constant.PAYMENT_COMPLETE)); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_FIRSTNAME, SessionWrapper.LoggedUser.FirstName); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_LASTNAME, SessionWrapper.LoggedUser.LastName); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_TRANSACTIONID, TransactionID); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_ORDERNUMBER, orderID.ToString()); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_PURCHASEDATE, lblPurchaseDt.Text); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_PACKAGENAME, lblPackageName.Text); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_PROFESSION, selectedProf); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_COSTOFREPORT, lblRptCost.Text); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_OPTIONALREPORT, OptionalReportsPrice.ToString("C")); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_DISCOUNTOFFERED, lblDiscountOffer.Text); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_TRANSACTIONAMOUNT, totalReportCost); StringBuilder emailBodyPaymentSupport = new StringBuilder(ConstructMail.GetMailBody(Constant.PAYMENT_COMPLETE_SUPPORT)); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_FIRSTNAME, SessionWrapper.LoggedUser.FirstName); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_USEREMAILID, SessionWrapper.LoggedUser.Email); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_TRANSACTIONID, TransactionID); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_ORDERNUMBER, orderID.ToString()); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_PURCHASEDATE, lblPurchaseDt.Text); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_PACKAGENAME, lblPackageName.Text); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_PROFESSION, selectedProf); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_COSTOFREPORT, lblRptCost.Text); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_OPTIONALREPORT, OptionalReportsPrice.ToString("C")); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_DISCOUNTOFFERED, lblDiscountOffer.Text); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_TRANSACTIONAMOUNT, totalReportCost); StringBuilder reportList = new StringBuilder(""); List <string> lstReport = new List <string>(); //lstReport = OrderStatusHelper.GetReportList(orderID); List <Report> reportNameList = PlanHelper.GetPlanReports(selectedPlanId); string reportName = string.Empty; foreach (Report report in reportNameList) { reportName = report.Name; lstReport.Add(reportName); } if (SessionWrapper.AlacartReportList.Count != 0) { List <int> alacartRptIDList = SessionWrapper.AlacartReportList; Report report; foreach (int reportID in alacartRptIDList) { report = new Report(); report = PlanHelper.GetReportByReportID(reportID); lstReport.Add(report.Name); } } lstReport.Sort(); reportList = reportList.Append("<ul>"); for (int count = 0; count < lstReport.Count; count++) { reportName = "<li>" + lstReport[count] + "</li>"; reportList = reportList.Append(reportName); } reportList = reportList.Append("</ul>"); emailBodyPayment = emailBodyPayment.Replace("divReportList", reportList.ToString()); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace("divReportList", reportList.ToString()); if (selectedProf != Constant.UNCOVER_BACKGROUND) { emailBodyPayment = emailBodyPayment.Replace("display:none;", ""); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace("display:none;", ""); } SendMail.Sendmail(SessionWrapper.LoggedUser.Email, Constant.CONST_PAYMENT_SUCCESS, emailBodyPayment.ToString()); SendMail.Sendmail(Constant.ADMINEMAIL, Constant.CONST_PAYMENT_SUCCESS_SUPPORT, emailBodyPaymentSupport.ToString()); if (SessionWrapper.ModuleName == Constant.UNCOVER_BACKGROUND) { ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "alert", "setUncoverBg();", true); } }
public void SetSummaryData() { try { string userName = string.Empty; string TransactionID = string.Empty; int orderID = 0; string totalReportCost = string.Empty; string accessFees = string.Empty; string holdingFees = string.Empty; Decimal discountOffered = 0; int selectedPlanId = SessionWrapper.OrderDetail.PlanId; string selectedProf; Decimal PlanPrice = 0; if (SessionWrapper.PaymentDetails != null) { userName = SessionWrapper.PaymentDetails.userName; orderID = SessionWrapper.PaymentDetails.orderID; totalReportCost = SessionWrapper.PaymentDetails.totalReportCost; discountOffered = SessionWrapper.PaymentDetails.discountOffered; TransactionID = SessionWrapper.PaymentDetails.TransactionID; } if (SessionWrapper.ModuleName != Constant.UNCOVER_BACKGROUND) { selectedProf = ProfessionHelper.GetProfessionNameById(SessionWrapper.OrderDetail.ProfessionId); PlanPrice = PlanHelper.GetPlan(SessionWrapper.OrderDetail.PlanId).Rate; Decimal discountRate = PlanHelper.GetPlan(SessionWrapper.OrderDetail.PlanId).RateOff; List <EknowIDModel.Report> reports = PlanHelper.GetPlanReports(selectedPlanId); } else { if (SessionWrapper.ResumeRuleCheck.isResumeModule == true) { selectedProf = ProfessionHelper.GetProfessionNameById(SessionWrapper.OrderDetail.ProfessionId); } else { selectedProf = Constant.UNCOVER_BACKGROUND; } } Decimal OptionalReportsPrice = 0; decimal otherCharges = 0; if (SessionWrapper.AlacartReportList.Count != 0) { List <int> alacartRptIDList = SessionWrapper.AlacartReportList; Dictionary <int, int> alacartReportListWithQty = SessionWrapper.AlacartReportListWithQty; List <Report> alacartReportList = new List <Report>(); Report report; foreach (int reportID in alacartRptIDList) { var qty = (null != alacartReportListWithQty && alacartReportListWithQty.ContainsKey(reportID)) ? alacartReportListWithQty[reportID] : 1; report = new Report(); report = PlanHelper.GetReportByReportID(reportID); OptionalReportsPrice += (qty * report.Price.Value); if ("Education Verification" == report.Name || "Employment Verification" == report.Name) { otherCharges += (25 * qty); } } } string moduleName = SessionWrapper.ModuleName; moduleName = SessionWrapper.ResumeRuleCheck.isResumeModule == true ? Constant.RESUME_CHECKER : moduleName; otherCharges += SessionWrapper.AlacartAccessFees; accessFees = otherCharges.ToString("C"); lblName.Text = userName; lblTransID.Text = TransactionID; lblOrdNo.Text = orderID.ToString(); lblOptRptCost.Text = OptionalReportsPrice.ToString("C"); lblDiscountOffer.Text = "- " + discountOffered.ToString("C"); lblPurchaseDt.Text = CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(DateTime.Now.Month) + " " + DateTime.Now.Date.ToString("dd") + " " + DateTime.Now.Year; lblTransAmount.Text = totalReportCost; lblSelectedProf.Text = selectedProf; lblModuleName.Text = moduleName; lblOtherCharges.Text = accessFees; if (SessionWrapper.ModuleName != Constant.UNCOVER_BACKGROUND) { lblPackageName.Text = PlanHelper.GetPlan(selectedPlanId).Name.ToString(); lblRptCost.Text = PlanHelper.GetPlan(selectedPlanId).Rate.ToString("C"); } //Payment Success mail to user StringBuilder emailBodyPayment = new StringBuilder(ConstructMail.GetMailBody(Constant.PAYMENT_COMPLETE)); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_FIRSTNAME, SessionWrapper.LoggedUser.FirstName); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_LASTNAME, SessionWrapper.LoggedUser.LastName); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_TRANSACTIONID, TransactionID); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_ORDERNUMBER, orderID.ToString()); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_PURCHASEDATE, lblPurchaseDt.Text); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_PACKAGENAME, lblPackageName.Text); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_PROFESSION, selectedProf); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_COSTOFREPORT, lblRptCost.Text); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_OPTIONALREPORT, OptionalReportsPrice.ToString("C")); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_DISCOUNTOFFERED, lblDiscountOffer.Text); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_TRANSACTIONAMOUNT, totalReportCost); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_MODULENAME, moduleName); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_OTHERCHARGES, accessFees); StringBuilder emailBodyPaymentSupport = new StringBuilder(ConstructMail.GetMailBody(Constant.PAYMENT_COMPLETE_SUPPORT)); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_FIRSTNAME, SessionWrapper.LoggedUser.FirstName); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_USEREMAILID, SessionWrapper.LoggedUser.Email); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_TRANSACTIONID, TransactionID); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_ORDERNUMBER, orderID.ToString()); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_PURCHASEDATE, lblPurchaseDt.Text); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_PACKAGENAME, lblPackageName.Text); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_PROFESSION, selectedProf); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_COSTOFREPORT, lblRptCost.Text); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_OPTIONALREPORT, OptionalReportsPrice.ToString("C")); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_DISCOUNTOFFERED, lblDiscountOffer.Text); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_TRANSACTIONAMOUNT, totalReportCost); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_MODULENAME, moduleName); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_OTHERCHARGES, accessFees); StringBuilder reportList = new StringBuilder(""); List <string> lstReport = new List <string>(); List <Report> reportNameList = PlanHelper.GetPlanReports(selectedPlanId); string reportName = string.Empty; foreach (Report report in reportNameList) { reportName = report.Name; lstReport.Add(reportName); } if (SessionWrapper.AlacartReportList.Count != 0) { List <int> alacartRptIDList = SessionWrapper.AlacartReportList; Report report; foreach (int reportID in alacartRptIDList) { report = new Report(); report = PlanHelper.GetReportByReportID(reportID); lstReport.Add(report.Name); } } lstReport.Sort(); reportList = reportList.Append("<ul>"); for (int count = 0; count < lstReport.Count; count++) { reportName = "<li>" + lstReport[count] + "</li>"; reportList = reportList.Append(reportName); } reportList = reportList.Append("</ul>"); emailBodyPayment = emailBodyPayment.Replace("divReportList", reportList.ToString()); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace("divReportList", reportList.ToString()); if (selectedProf == Constant.UNCOVER_BACKGROUND) { emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_SELECTPROFCLASS, Constant.CONST_DISPLAYNONECLASS); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_PACKAGENAMECLASS, Constant.CONST_DISPLAYNONECLASS); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_PACKAGECOSTCLASS, Constant.CONST_DISPLAYNONECLASS); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_ADDITIONALREPORTCOST, Constant.CONST_ALACARTREPORTCOST); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_SELECTPROFCLASS, Constant.CONST_DISPLAYNONECLASS); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_PACKAGENAMECLASS, Constant.CONST_DISPLAYNONECLASS); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_PACKAGECOSTCLASS, Constant.CONST_DISPLAYNONECLASS); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_ADDITIONALREPORTCOST, Constant.CONST_ALACARTREPORTCOST); lblAddReportCost.Text = "Alacart Report(s) Cost:"; } if (selectedProf == Constant.IDENTITY_THEFT) { emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_SELECTPROFCLASS, Constant.CONST_DISPLAYNONECLASS); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_SELECTPROFCLASS, Constant.CONST_DISPLAYNONECLASS); } if (moduleName == Constant.RESUME_CHECKER) { emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_PACKAGENAMECLASS, Constant.CONST_DISPLAYNONECLASS); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_PACKAGECOSTCLASS, Constant.CONST_DISPLAYNONECLASS); emailBodyPayment = emailBodyPayment.Replace(Constant.CONST_ADDITIONALREPORTCOST, Constant.CONST_ALACARTREPORTCOST); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_PACKAGENAMECLASS, Constant.CONST_DISPLAYNONECLASS); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_PACKAGECOSTCLASS, Constant.CONST_DISPLAYNONECLASS); emailBodyPaymentSupport = emailBodyPaymentSupport.Replace(Constant.CONST_ADDITIONALREPORTCOST, Constant.CONST_ALACARTREPORTCOST); lblAddReportCost.Text = "Alacart Report(s) Cost:"; } if (SessionWrapper.PaymentDetails != null && SessionWrapper.PaymentDetails.isPaymentNotificationSend == false) { SendMail.Sendmail(SessionWrapper.LoggedUser.Email, Constant.CONST_PAYMENT_SUCCESS, emailBodyPayment.ToString()); SendMail.Sendmail(Constant.ADMINEMAIL, Constant.CONST_PAYMENT_SUCCESS_SUPPORT, emailBodyPaymentSupport.ToString()); SessionWrapper.PaymentDetails.isPaymentNotificationSend = true; } if (moduleName == Constant.UNCOVER_BACKGROUND) { ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "alert", "setUncoverBg();", true); } if (moduleName == Constant.IDENTITY_THEFT) { ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "alert", "setIDTheftBg();", true); } if (moduleName == Constant.RESUME_CHECKER) { ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "alert", "setResumeCheckerBg();", true); } } catch { } }