Beispiel #1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (mail == null)
            {
                mail = new ExchangeMail(ConfigHelper.EmailAddress,
                                        ConfigHelper.EmailPassword,
                                        ConfigHelper.ExchangeUrl);

                //Authentication mail
                mail.Authentication();

                //Emails from the last three minutes
                mail.Time = DateTime.Now.AddMinutes(-3);
            }

            FindItemsResults <Item> item = mail.FetchMail();

            //Call method show to pass to notify
            Show(MailList.ListMail(item, mail.Time));
        }