public void UpdateEmailList() { EmailReader reader = new EmailReader(data.HostPop3, data.PortPop3, data.User, data.Password); if (data.UseSSL) { data.Emails = reader.GetAllEmailsSsl().ToList(); } else { data.Emails = reader.GetAllEmails().ToList(); } }
public void VerifyPop3(string hostPop3, int portPop3, string user, string password, bool useSSL) { EmailReader reader = new EmailReader(hostPop3, portPop3, user, password); if (useSSL) { var emails = reader.GetAllEmailsSsl(); } else { var emails = reader.GetAllEmails(); } }