SAK-39992: Announcements > new config to make email notification 'To' address match 'From' address if 'From' is replyable #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://jira.sakaiproject.org/browse/SAK-39992
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:and the 'From' address is in the format of:
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 usesgetServerName()
as the domain of the email address: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).