/**
  * Constructor
  * reads the service configuration
  */
 public function __construct()
 {
     parent::__construct('simple_mail');
     $contactRepository = tx_caretaker_ContactRepository::getInstance();
     $this->mail_from = $this->getConfigValue('mail_from');
     $this->mail_subject = $this->getConfigValue('mail_subject');
     $this->mail_link = $this->getConfigValue('mail_link');
     $this->mail_link = $this->getConfigValue('mail_link');
     $this->mail_roles = array();
     $role_ids = explode(',', $this->getConfigValue('role_ids'));
     foreach ($role_ids as $role_id) {
         $role = $contactRepository->getContactRoleById(trim($role_id));
         if (!$role && is_numeric($role_id)) {
             $role = $contactRepository->getContactRoleByUid(intval($role_id));
         }
         if ($role) {
             $this->mail_roles[] = $role;
         }
     }
 }
 /**
  * Constructor
  * reads the service configuration
  */
 public function __construct()
 {
     parent::__construct('advanced');
 }
 public function __construct()
 {
     parent::__construct('cli');
 }