Offline errors fix
This commit is contained in:
@@ -148,40 +148,5 @@ namespace FoxTube.Pages.SettingsPages
|
||||
debugData = meta;
|
||||
debugAttached.Visibility = Visibility.Visible;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
private void feedbackSubmit_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (feedbackTitle.Text == "") MessageBox.Show("Please, fill the first field before submitting.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
else
|
||||
{
|
||||
string type()
|
||||
{
|
||||
if (feedbackSuggestion.Checked) return "Suggestion";
|
||||
else return "Problem";
|
||||
}
|
||||
try
|
||||
{
|
||||
MailMessage msg = new MailMessage();
|
||||
msg.To.Add("foxgameofficial@gmail.com");
|
||||
msg.From = new MailAddress("sender@gmail.com");
|
||||
msg.Subject = "Stream2String feedback";
|
||||
msg.Body = "Type: " + type() + "\n\nTitle: " + feedbackTitle.Text + "\nDetails: " + feedbackDetails.Text + "\n\n" + feedbackMail.Text;
|
||||
|
||||
SmtpClient client = new SmtpClient("smtp.gmail.com", 587);
|
||||
client.EnableSsl = true;
|
||||
client.Credentials = new NetworkCredential("sender@gmail.com", "Thisisthepassword07734");
|
||||
|
||||
//Send the msg
|
||||
client.Send(msg);
|
||||
MessageBox.Show("Thank you for your feedback. You've just helped us to make our program better!", "Congratulations!", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
proceedFeedback();
|
||||
Properties.Settings.Default.feedback = true;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
catch { MessageBox.Show("Unfortunately, we can't send your feedback now. Please, try again later.", "Server connection error", MessageBoxButtons.OK, MessageBoxIcon.Error); }
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user