Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-39992

Announcements > new config to make email notification 'To' address match 'From' address if 'From' is replyable

    Details

    • Type: Feature Request
    • Status: RESOLVED
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 11.5 [Tentative], 12.2, 19.0
    • Fix Version/s: 19.0
    • Component/s: Announcements
    • Labels:
      None
    • Test Plan:
      Hide

      This must be tested on the Experimental server (https://experimental.nightly.sakaiproject.org/portal)

      1. In any site, with any user that has a valid email address set create an Announcement
      2. Give it an arbitrary title and body
      3. Set the email notification level to 'High'
      4. In the logs, verify that the email address used in the 'To' field matches the email address used in the 'From' field
      Show
      This must be tested on the Experimental server ( https://experimental.nightly.sakaiproject.org/portal ) In any site, with any user that has a valid email address set create an Announcement Give it an arbitrary title and body Set the email notification level to 'High' In the logs, verify that the email address used in the 'To' field matches the email address used in the 'From' field

      Description

      Currently if your server has the property set to make Announcement emails 'From' address replyable (notify.email.from.replyable=true), when an announcement notification email is sent, the default 'To' address is in the format of:

      "[siteTitle] <noreply@[ServerConfigurationService.getServerName()]>"
      

      and the 'From' address is in the format of:

      "[lastName, firstName] <[instructor/maintainerEmail]>"
      

      There may be an institutional requirement or preference to control the email address used in the 'To' address, similar to how you can control the 'From' address with the existing 'mail.sendfromsakai' sakai.property.

      The only configuration option for this is the 'notify.email.to.replyable' sakai.property, which when set to true and the site contains the Email Archive, it will use the Email Archive's 'site email address' as the 'To' address in the announcement notification emails. However, the Email Archive's email address still uses getServerName() as the domain of the email address:

      "[siteTitle] <[userDefinedPrefix]@[ServerConfigurationService.getServerName()]>"
      

      That property doesn't solve the institutional requirement.

      To address this, we introduced the sakai.property 'announcement.notification.email.to.matches.from', which defaults to false to preserve OOTB functionality. When the property is set to true, it will use the same email address used in the 'From' address for the 'To' address as well (the instructor/maintainer's email address).

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bjones86 Brian Jones
                Reporter:
                bjones86 Brian Jones
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code