Ejemplo n.º 1
0
        private static void ProcessDelayedReminders()
        {
            var sorts = SortMainObject.GetDeleyedReminders();

            if (sorts != null)
            {
                foreach (var sort in sorts)
                {
                    try
                    {
                        if (Email.SendEmail(sort, EmailTypeEnum.DelayedReminder))
                        {
                            sort.DelayReminderSent = true;
                            sort.Save();
                        }
                    }
                    catch (Exception ex)
                    {
                        ErrorLogObject.LogError("Console:ProcessDelayedReminders", ex);
                    }
                }
            }
        }