- added email notifications for "rally points", closed #279

This commit is contained in:
Exodus4D
2016-08-08 20:48:28 +02:00
parent 97f20677ac
commit e23bb6790b
6 changed files with 74 additions and 8 deletions

View File

@@ -41,4 +41,19 @@ class MailController extends \SMTP{
return $status;
}
/**
* send notification mail for new rally point systems
* @param $to
* @param $msg
* @return bool
*/
public function sendRallyPoint($to, $msg){
$this->set('To', '<' . $to . '>');
$this->set('From', 'Pathfinder <' . Controller::getEnvironmentData('SMTP_FROM') . '>');
$this->set('Subject', 'PATHFINDER - New rally point');
$status = $this->send($msg);
return $status;
}
}