Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions mod/calendar/class/Suggestion.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down