RSS

LuxCal Forum

The place for questions, suggestions and news about the LuxCal Event Calendar

User:   Password:   Remember Me?   
LuxCal Forum / LuxCal / Comments and Suggestions / Turn off email notification of events.
Posted:  19 Oct 2014 12:39
Hi Roel,

For an individual they may want email notification. For my current use, and perhaps for others, the events are to let others know of the event so email notification might be redundant. Perhaps a check box that the Admin can enable or disable the feature.

Regards,
Dan
__________________
"Little Guy"
Some own motorcycles, others ride them.

Find great LuxCal examples by Schwartz at http://www.calendarforum.dk/index.html
Posted:  21 Oct 2014 01:09
In Administration > Settings under the email settings you can disable the email server - which I figure would disable the email notification

Ha! but then again I could be wrong biggrin
Posted:  21 Oct 2014 02:16
For user accounts I have Self registration and Self registration notification checked. If I have "Email Settings" disabled won't it disable those as well?

Thanks
Dan
__________________
"Little Guy"
Some own motorcycles, others ride them.

Find great LuxCal examples by Schwartz at http://www.calendarforum.dk/index.html
Posted:  21 Oct 2014 07:36
Good point!  I don't have any registrations and don't need to email myself ...
Posted:  23 Oct 2014 20:29   Last Edited By: Roel B.
Yes, Dan is correct here. If you disable the mail server on the admin's Settings page, then the "send mail" section in the Event window will be suppressed, and - as a side-effect - the self-registration function can't send the password to the user any more.
I've never thought about this, and I think it's not good. It would be better for the self-registration function to revert to PHP-mail when the mail server is disabled. I will change this in the next LuxCal version.

It only requires a minor change. Edit the common/toolbox.php file as follows:
For LuxCal 3.2.3: Change line 368
For LuxCal 4.1.0: Change line 481
from . . .
    if ($set['mailServer'] == 1) { //mail via PHP
to . . .
    if ($set['mailServer'] <= 1) { //mail via PHP

After this change, you can disable the mail server on the admin's settings page to get rid of the "send mail" section in the Event window without disabling the password mail sent by the self-registration function.

Roel
Posted:  24 Oct 2014 14:41
Thank you Roel, that works perfectly. I have a small feature request I'll post separately about.

Dan
__________________
"Little Guy"
Some own motorcycles, others ride them.

Find great LuxCal examples by Schwartz at http://www.calendarforum.dk/index.html