Example #1
0
        private void SendButton_OnClick(object sender, RoutedEventArgs e)
        {
            var emailSender = new EmailSendServiceClass(UserNameEditor.Text, PasswordEditor.SecurePassword);

            emailSender.SendMessage(NetworkingVariables.host, NetworkingVariables.port, NetworkingVariables.emailFrom, NetworkingVariables.emailTo, NetworkingVariables.name, MessageSubj.Text, Message.Text
                                    , NetworkingVariables.successMsg, NetworkingVariables.errorMsg, NetworkingVariables.successCaption, NetworkingVariables.successCaption);
        }
Example #2
0
        private void SendButton_Click(object sender, RoutedEventArgs e)
        {
            var                   userName     = tbUserName.Text;
            SecureString          userPassword = pbPassword.SecurePassword;
            EmailSendServiceClass emailSend    = new EmailSendServiceClass();

            emailSend.MessageSubject = tbMailTopic.Text;
            emailSend.MessageSubject = tbMailText.Text;
            emailSend.To             = tbUserName.Text;

            emailSend.SendMail(userName, userPassword);
        }