diff --git a/mod/calendar/class/Suggestion.php b/mod/calendar/class/Suggestion.php index 96334473a..1e14c2722 100644 --- a/mod/calendar/class/Suggestion.php +++ b/mod/calendar/class/Suggestion.php @@ -147,6 +147,13 @@ public function save() $this->schedule_id = $this->_schedule->id; $this->submitted = time(); $db = new PHPWS_DB('calendar_suggestions'); + $to = PHPWS_Settings::get('calendar', 'cal_manager'); + $subject = "Suggested Calendar Event"; + $txt = "A new Calendar Event has been submitted"; + $headers = "From: foo@bar.com" . "\r\n" . //Needs to be set Could be an additional setting or commented out completely + "CC: yada.yada.com"; // Same + + mail($to,$subject,$txt,$headers); return $db->saveObject($this); }