using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Configuration; public partial class Contact_Us : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } /**********************************************************************************************************/ /// /// Sends the contact us email. /// /// The sender. /// The instance containing the event data. protected void SendContact(object sender, EventArgs e) { string msg = ""; msg += "Website Contact Us
"; msg += "
Name: " + tbName.Text; msg += "
Surname: " + tbSurname.Text; msg += "
Tel: " + tbNumber.Text; msg += "
Email: " + tbEmail.Text; if (!string.IsNullOrEmpty(tbCompany.Text)) msg += "
Company: " + tbCompany.Text; msg += "
Message:
" + tbQuery.Text.Replace("\n", "
"); Global.SendBluWaveEmail(ConfigurationManager.AppSettings.Get("NotifyAddress"), "Website Contact Us", msg, tbEmail.Text); lbSent.Visible = true; tbName.Text = ""; tbSurname.Text = ""; tbNumber.Text = ""; tbEmail.Text = ""; tbCompany.Text = ""; tbQuery.Text = ""; } }