Topic: permanent event notification to fixed separate e-mail address

When adding or editing an event, I would like to have "the tick in the box" that can be entered before event notification always there instead of the other way around. Furthermore I would like to send each added, edited or deleted event to a fixed e-mail address (not being the admin email address, but something like events&bruedergrimmschule.de instead of info@bruedergrimmschule.de).

How can this be achieved?
Greetz, Lucas.

Re: permanent event notification to fixed separate e-mail address

Hi Lucas,

To have the "Send mail now" check box checked by default, is a minor change. I will have a look and if it's simple I will post the required change here shortly.
Sending all calendar changes (add, edit, delete event) to one or more email addresses is already possible: Open the admin's Settings page and in the section "General" check the check box "Send notification of calendar changes" and specify the email address(es) of the recipient(s).

Roel

Re: permanent event notification to fixed separate e-mail address

Hi Roel,

That would be great !!!
Thanks in advance !!!

Regards, Lucas

Re: permanent event notification to fixed separate e-mail address

Ok, Lucas, here we go!

Edit the file "pages/event.php" and change line 216 from . . .

$nen = isset($_POST['nen']) ? ($_POST['nen'] == 'yes' ? 1 : 0) : 0; //notify Eml now

tp . . .

$nen = isset($_POST['nen']) ? ($_POST['nen'] == 'yes' ? 1 : 0) : 1; //notify Eml now

if you want the "Notify now" check box to be always checked, so when adding and when editing an event (just the "0" at the end changed to "1").

and to . . .

$nen = isset($_POST['nen']) ? ($_POST['nen'] == 'yes' ? 1 : 0) : (($mode == 'add' and !$refresh) ? 1 : 0); //notify Eml now

if you want the "Notify now" check box to be  checked only initially when adding an event.

Roel

Re: permanent event notification to fixed separate e-mail address

Hi Roel,

Excellent, works flawlessly.
Thanks a lot !!!

I have another suggestion as well,
but therefore I will open a new post.

Regards, Lucas.