コード例 #1
0
ファイル: EmailErrorNotification.cs プロジェクト: radtek/Pos
        Deserialize(
            XmlNode sourceNode)
        {
            foreach (XmlNode recipient in
                     sourceNode.SelectNodes("child::recipient"))
            {
                recipients.Add(recipient.InnerText);
            }

            senderConfiguration = new SenderConfiguration();
            senderConfiguration.Deserialize(
                sourceNode.SelectSingleNode("Sender"));
        }
コード例 #2
0
ファイル: EmailErrorNotification.cs プロジェクト: radtek/Pos
 SetSenderDetails(
     Credential authorizationCredential,
     string replyToAddress,
     string serverAddress,
     string serverPort,
     bool usingSsl)
 {
     senderConfiguration =
         new SenderConfiguration(authorizationCredential,
                                 replyToAddress,
                                 serverAddress,
                                 serverPort,
                                 usingSsl);
 }
コード例 #3
0
        SynchronizeEmailNotifications()
        {
            EmailErrorNotification een =
                configuration.CopyGroupInstance.CopyOperation.EmailErrorNotification;
            SenderConfiguration sc = een.SenderConfiguration;

            tbSendingFrom.Text  = sc.ReplyToAddress;
            tbSmtpServer.Text   = sc.ServerAddress;
            tbSmtpPort.Text     = sc.ServerPort;
            tbSmtpUsername.Text = sc.Credential.Username;
            tbSmtpPassword.Text = sc.Credential.Password;

            chbUseSsl.IsChecked = sc.UsingSsl;

            foreach (String m in een.Recipients)
            {
                lbRecipients.Items.Add(m);
            }
        }