public void NewTask(NewTaskData data)
        {
            if (!_setting.UseMandrill)
            {
                return;
            }

            var message = new EmailMessage
            {
                to = new[] { new EmailAddress(_setting.JarbooInfoEmail) },
                from_email = _setting.MandrillFrom,
                subject = "New task"
            };

            message.AddGlobalVariable("CUSTOMERNAME", data.CustomerName);
            message.AddGlobalVariable("TASKNAME", data.TaskTitle);
            message.AddGlobalVariable("PROJECTNAME", data.ProjectName);
            message.AddGlobalVariable("TASKDESCRIPTION", data.TaskDescription);
            message.AddGlobalVariable("TASKLINK", _urlConstructor.TaskView(data.TaskId));

            _api.SendMessage(message, _setting.MandrillNewTaskTemplate, null);
        }
 public void NewTask(NewTaskData data)
 { }