public static GMailClient Connect(string email, string password) { var gMailClient = new GMailClient(); ((MailClient)gMailClient).Connect(email, password); return(gMailClient); }
private static GMailClient CreateClient(string email, string password) { var client = GMailClient.Connect(email, password); return(client); }
public static void DeleteMessages(string email, string password) { var client = GMailClient.Connect(email, password); client.DeleteAll(); }