← Back to team overview

dhis2-devs team mailing list archive

Re: Where is the UI option to configure the "keySystemNotificationsEmail"

 

Ah apologies, I was confused here. In 2.22 you can set this from Settings >
Server > System notifications email address.



Lars


On Thu, Feb 25, 2016 at 8:07 AM, Vanya Seth <vanyas@xxxxxxxxxxxxxxxx> wrote:

> The setting you are referring to is this one:  "
> keyMessageEmailNotification" which tells whether or not to send  the
> email notifications.
>
> @Override
> public boolean sendSystemEmail( Email email )
> {
>     String recipient = (String) systemSettingManager.getSystemSetting( SettingKey.SYSTEM_NOTIFICATIONS_EMAIL );
>
>
> and SystemSettingKey file has this entry:
>
> SYSTEM_NOTIFICATIONS_EMAIL( "keySystemNotificationsEmail" ),
>
> We do have the email address set on the Profile->profile.
>
> Regards
>
> Vanya
>
>
> On Thu, Feb 25, 2016 at 6:30 PM, Lars Helge Øverland <lars@xxxxxxxxx>
> wrote:
>
>> Okay. I think the issue here is this - the "keySystemNoticationsEmail"
>> user refers to whether or not you should send email notifications to that
>> user. The email to send to you will have to set on the user object (User >
>> email) in profile > profile.
>>
>> We have an open issue for including a description of all user/system
>> settings in the docs.
>>
>>
>> On Thu, Feb 25, 2016 at 7:55 AM, Vanya Seth <vanyas@xxxxxxxxxxxxxxxx>
>> wrote:
>>
>>> Hi Lars
>>>
>>> Thanks for the response.
>>>
>>> But we did set the email address on the user's profile, but while we use
>>> the method sendSystemEmail from the EmailService, we get the recipient as
>>> "null". And for the recipient its trying to use the "keySystemNotificati
>>> onsEmail" key from the systemsetting.
>>>
>>> Regards
>>> Vanya
>>>
>>> On Thu, Feb 25, 2016 at 6:18 PM, Lars Helge Øverland <lars@xxxxxxxxx>
>>> wrote:
>>>
>>>> Hi Vanya,
>>>>
>>>> this is currently a user setting (not system). So you can set it from
>>>> profile > settings.
>>>>
>>>> That said, in version 2.23 we are introducing fallback to system
>>>> settings for all user settings, so that you can easily enable email
>>>> notifications for all users by default (and continue to have users override
>>>> it). This will apply to all user settings.
>>>>
>>>> https://blueprints.launchpad.net/dhis2/+spec/user-setting-fallback
>>>>
>>>>
>>>> regards,
>>>>
>>>> Lars
>>>>
>>>>
>>>>
>>>> On Thu, Feb 25, 2016 at 7:45 AM, Vanya Seth <vanyas@xxxxxxxxxxxxxxxx>
>>>> wrote:
>>>>
>>>>> Hi Dhis devs
>>>>>
>>>>> Have been struggling to find this one.
>>>>>
>>>>> Wanted to know where is the UI option to set the system setting for "
>>>>> keySystemNotificationsEmail". I know it exists through Web API, but
>>>>> do we have the option to be set from some UI screen as well?
>>>>>
>>>>> --
>>>>> With Regards
>>>>> Vanya
>>>>> ThoughtWorks Technologies
>>>>> Hyderabad
>>>>>
>>>>> --Stay Hungry Stay Foolish!!
>>>>>
>>>>> _______________________________________________
>>>>> Mailing list: https://launchpad.net/~dhis2-devs
>>>>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Lars Helge Øverland
>>>> Lead developer, DHIS 2
>>>> University of Oslo
>>>> Skype: larshelgeoverland
>>>> http://www.dhis2.org <https://www.dhis2.org/>
>>>>
>>>>
>>>
>>>
>>> --
>>> With Regards
>>> ThoughtWorks Technologies
>>> Hyderabad
>>>
>>> --Stay Hungry Stay Foolish!!
>>>
>>
>>
>>
>> --
>> Lars Helge Øverland
>> Lead developer, DHIS 2
>> University of Oslo
>> Skype: larshelgeoverland
>> http://www.dhis2.org <https://www.dhis2.org/>
>>
>>
>
>
> --
> With Regards
> ThoughtWorks Technologies
> Hyderabad
>
> --Stay Hungry Stay Foolish!!
>



-- 
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
http://www.dhis2.org <https://www.dhis2.org/>

Follow ups

References