Ejemplo n.º 1
0
        private void SendEmail(object sender, RoutedEventArgs e)
        {
            var toAddresses          = To.Text.Split(',').ToList();
            var copyToAddresses      = Copy.Text.Split(',').ToList();
            var blindCopyToAddresses = BlindCopy.Text.Split(',').ToList();

            MessageBox.Show("Email byl odeslán.", "Informace", MessageBoxButton.OK, MessageBoxImage.Information);
            MainController.Instance.SendEmail(toAddresses, Subject.Text, Body.Text, copyToAddresses, blindCopyToAddresses);
            To.Clear();
            Copy.Clear();
            BlindCopy.Clear();
            Subject.Clear();
            Body.Clear();
        }