A dialog to allow the user to enter their Smtp details, saved to the local settings file.
Inheritance: System.Windows.Forms.Form
Exemple #1
0
 private void ShowSmtpDialog()
 {
     using (var SmtpDialog = new ConfigureSmtpDialog()) {
         SmtpDialog.ShowDialog();
         if (!SmtpDialog.Details.IsValid && Settings.Default.EnableSmtpNotifications)
         {
             tsmEnableSMTPNotifications.Checked       = false;
             Settings.Default.EnableSmtpNotifications = false;
             Settings.Default.Save();
             MessageBox.Show("Disabled SMTP notifications as your settings are invalid.");
         }
     }
 }
Exemple #2
0
		private void ShowSmtpDialog() {
			using(var SmtpDialog = new ConfigureSmtpDialog()) {
				SmtpDialog.ShowDialog();
				if(!SmtpDialog.Details.IsValid && Settings.Default.EnableSmtpNotifications) {
					tsmEnableSMTPNotifications.Checked = false;
					Settings.Default.EnableSmtpNotifications = false;
					Settings.Default.Save();
					MessageBox.Show("Disabled SMTP notifications as your settings are invalid.");
				}
			}
		}