private void BtnYes_Click(object sender, EventArgs e) { string body = "EMAIL=" + this.TbEmail.Text + Environment.NewLine + new String('-', 40) + Environment.NewLine + "MESSAGE=" + this.TbMessage.Text + Environment.NewLine + new String('-', 40) + Environment.NewLine + this.TbData.Text; NameValueCollection paramColl = new NameValueCollection(); paramColl.Add("AppName", "GDocBackup"); paramColl.Add("MsgType", "Feedback"); paramColl.Add("MsgTitle", this.LblTitle.Text); paramColl.Add("MsgBody", body); Properties.Settings conf = Properties.Settings.Default; IWebProxy webproxy = Utility.GetProxy( conf.ProxyExplicit, conf.ProxyDirectConnection, conf.ProxyHostPortSource, conf.ProxyHost, conf.ProxyPort, conf.ProxyAuthMode, conf.ProxyUsername, conf.ProxyPassword); SendFeedback sf = new SendFeedback(); if (sf.Exec(paramColl, webproxy)) { MessageBox.Show("Informations correctly sent. Thank you."); } else { MessageBox.Show( "Error during transmission [" + ((sf.InternalException != null) ? sf.InternalException.Message : "?") + "]"); } this.Close(); }