protected void btnSubmit_Click(object sender, EventArgs e) { string from = Sitecore.Configuration.Settings.GetSetting("SafetyFL_eLetterSignupEmailFromAddr", ""); string to = Sitecore.Configuration.Settings.GetSetting("SafetyFL_eLetterSignupEmailToAddr", ""); string sub = Sitecore.Configuration.Settings.GetSetting("SafetyFL_eLetterSignupEmailSubject", ""); HISForm.SubmitForm(pnlFormStart, pnlFormComplete, from, to, sub, null); }
protected void btnSubmit_Click(object sender, EventArgs e) { string userEmail = Request.Form["tb_Email_Address"].ToString().ToLower(); //string from = Sitecore.Configuration.Settings.GetSetting("ShimLib_EmailFromAddr", ""); string from = userEmail; string to = Sitecore.Configuration.Settings.GetSetting("SL_ReqConsultEmailToAddr", "") + "; " + userEmail; string sub = Sitecore.Configuration.Settings.GetSetting("SL_ReqConsultEmailSubject", ""); HISForm.SubmitForm(pnlFormStart, pnlFormComplete, from, to, sub, null); }
protected void btnSubmit_Click(object sender, EventArgs e) { string from = Request.Form["tbAuth_Email"].ToString().ToLower(); // string from = Sitecore.Configuration.Settings.GetSetting("IMpactFormEmailFromAddr", ""); string to = Sitecore.Configuration.Settings.GetSetting("IMpactFormEmailToAddr", ""); string sub = Sitecore.Configuration.Settings.GetSetting("IMpactFormEmailSubject", ""); try { if (Session["Files"] != null) { HttpFileCollection col = null; try { col = (HttpFileCollection)Session["Files"]; } catch { } if (col != null && col.Count > 0) { HISForm.SubmitForm(pnlFormStart, pnlFormComplete, from, to, sub, (HttpFileCollection)Session["Files"]); litComplete.Text += "<br/>Files sent!"; } else { HISForm.SubmitForm(pnlFormStart, pnlFormComplete, from, to, sub, null); //litComplete.Text += "<br/>Form sent!"; } } else { HISForm.SubmitForm(pnlFormStart, pnlFormComplete, from, to, sub, null); //litComplete.Text += "<br/>Form sent!"; } } catch (Exception ex) { string msg = ""; msg += "ERROR: " + ex.Message + "\n" + ex.StackTrace; if (ex.InnerException != null) { msg += "\nInner Exception: " + ex.InnerException.Message + "\n" + ex.InnerException.StackTrace; } litError.Text = "Error sending form! Please try again later."; pnlFormComplete.Visible = true; } }
protected void btnReset_Click(object sender, EventArgs e) { HISForm.ClearTextBoxes(form1); }