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); }
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); } }
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); }
private static void ProcessRegistrationReply(string foe) { // Save user ID FoeClientRegistry.SetEntry("userid", foe); }