예제 #1
0
 public static void SetPopServer(PopServer server)
 {
     FoeClientRegistry.SetEntry("popserver", server.ServerName);
     FoeClientRegistry.SetEntry("popport", server.Port.ToString());
     FoeClientRegistry.SetEntry("popsslenabled", (server.SslEnabled ? "T" : "F"));
     FoeClientRegistry.SetEntry("popusername", server.UserName);
     FoeClientRegistry.SetEntry("poppassword", server.Password);
 }
예제 #2
0
 public static void SetSmtpServer(SmtpServer server)
 {
     FoeClientRegistry.SetEntry("smtpserver", server.ServerName);
     FoeClientRegistry.SetEntry("smtpport", server.Port.ToString());
     FoeClientRegistry.SetEntry("smtpauthrequired", (server.AuthRequired ? "T" : "F"));
     if (server.AuthRequired)
     {
         FoeClientRegistry.SetEntry("smtpsslenabled", (server.SslEnabled ? "T" : "F"));
         FoeClientRegistry.SetEntry("smtpusername", server.UserName);
         FoeClientRegistry.SetEntry("smtppassword", server.UserName);
     }
 }
예제 #3
0
        private static void ProcessRegistrationReply(string xml)
        {
            // Load the xml document
            XmlDocument doc = new XmlDocument();

            doc.LoadXml(xml);

            // Get user ID
            XmlNode node   = doc.GetElementsByTagName("UserId")[0];
            string  userId = node.InnerText;

            // Save user ID
            FoeClientRegistry.SetEntry("userid", userId);
        }
예제 #4
0
 private static void ProcessRegistrationReply(string foe)
 {
     // Save user ID
     FoeClientRegistry.SetEntry("userid", foe);
 }