Ejemplo n.º 1
0
        static async System.Threading.Tasks.Task Main(string[] args)
        {
            string emailToken = File.ReadAllText("../../../../Settings.txt");
            var    option     = new SmtpClientOptions
            {
                Account   = "*****@*****.**",
                Token     = emailToken,
                Host      = "smtp.163.com",
                Port      = 465,
                EnableSsl = false
            };
            var em = new EmailService(option);

            Reminder reminder = new Reminder(new DbFileServices(), em, new Scanner());

            reminder.AddBooksUrl("http://www.biquge.se/23609/");
            reminder.AddReceiver("*****@*****.**");
            await reminder.StartAsync();
        }