public void CheckAutoAnswer(EventInvite eventInvite)
        {
            try
            {
                // Check if it is Autoanswer or not
                if (ConfigContainer.Instance().AllKeys.Contains("email.enable.auto-answer") &&
                    ((string)ConfigContainer.Instance().GetValue("email.enable.auto-answer")).ToLower().Equals("true"))
                {
                    //Get auto answer timer value from CME and show notifier when timer > 0
                    int seconds = 0;
                    int.TryParse(ConfigContainer.Instance().AllKeys.Contains("email.auto-answer.timer") ?
                                 ((string)ConfigContainer.Instance().GetValue("email.auto-answer.timer")) : "0", out seconds);

                    if (seconds > 0)
                    {
                        // Show or Hide reject button when email.auto-answer is set to true and the value of email.auto-answer.timer > 0
                        if (ConfigContainer.Instance().AllKeys.Contains("email.enable.auto-answer-reject") && ((string)ConfigContainer.Instance().GetValue("email.enable.auto-answer-reject")).ToLower().Equals("true"))
                        {
                            _taskbarNotifier.btnReject.Visibility = Visibility.Visible;
                        }
                        else
                        {
                            _taskbarNotifier.btnReject.Visibility = Visibility.Collapsed;
                        }

                        _taskbarNotifier.objiNotifier      = (TaskbarNotifier.INotifier)_taskbarNotifier;
                        _taskbarNotifier.isAutoAnswerTimer = true;
                        //Converting seconds to milliseconds
                        _taskbarNotifier.StayOpenMilliseconds = seconds * 1000;
                        _taskbarNotifier.OpeningMilliseconds  = 1000;
                        _taskbarNotifier.HidingMilliseconds   = 500;

                        ShowEmailNotifier(eventInvite);
                    }
                    else
                    {
                        _taskbarNotifier.objiNotifier         = null;
                        _taskbarNotifier.isAutoAnswerTimer    = false;
                        _taskbarNotifier.StayOpenMilliseconds = 1000000000;
                        _taskbarNotifier.OpeningMilliseconds  = 1000;
                        _taskbarNotifier.HidingMilliseconds   = 500;
                        _taskbarNotifier.btnReject.Visibility = Visibility.Visible;
                        //Auto Answer
                        _taskbarNotifier.eventInvite = eventInvite;
                        _taskbarNotifier.ReadContactName();
                        _taskbarNotifier.DoEmailAccept();
                    }
                }
                else
                {
                    _taskbarNotifier.StayOpenMilliseconds = 1000000000;
                    _taskbarNotifier.OpeningMilliseconds  = 1000;
                    _taskbarNotifier.HidingMilliseconds   = 500;
                    _taskbarNotifier.btnReject.Visibility = Visibility.Visible;
                    ShowEmailNotifier(eventInvite);
                }
            }
            catch (Exception ex)
            {
                logger.Error("Error in CheckAutoAnswer " + ex.Message);
            }
        }