Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
.idea/

# Abstra
# Abstra is an AI-powered process automation framework.
Expand All @@ -182,9 +182,9 @@ cython_debug/
.abstra/

# Visual Studio Code
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
# and can be added to the global gitignore or merged into this file. However, if you prefer,
# and can be added to the global gitignore or merged into this file. However, if you prefer,
# you could uncomment the following to ignore the entire vscode folder
# .vscode/

Expand Down
14 changes: 14 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@ Usage
.. code-block:: bash

tutor plugins enable notifications
Configuration
*************

The plugin exposes the following Tutor configuration keys :
- ``NOTIFICATIONS_DEFAULT_FROM_EMAIL``
- Default: inherits from the platform `CONTACT_EMAIL`.
- Purpose: sets the default "from" address used when sending notification emails.

.. code-block:: yaml

NOTIFICATIONS_DEFAULT_FROM_EMAIL: "[email protected]"

After changing configuration,restart environment so the new environment variable and settings are picked up by the LMS and MFE images.
If you rely on a specific "from" email for outgoing notifications, explicitly set ``NOTIFICATIONS_DEFAULT_FROM_EMAIL`` rather than relying on the platform-wide ``CONTACT_EMAIL``.


The email and push notification settings under Account can be enabled/disabled using `NOTIFICATIONS_ENABLE_SHOW_EMAIL_CHANNEL`
Expand Down
1 change: 1 addition & 0 deletions tutornotifications/patches/lms-env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NOTIFICATIONS_DEFAULT_FROM_EMAIL: '{{ NOTIFICATIONS_DEFAULT_FROM_EMAIL }}'
1 change: 1 addition & 0 deletions tutornotifications/patches/openedx-common-settings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NOTIFICATIONS_DEFAULT_FROM_EMAIL = ENV_TOKENS.get("NOTIFICATIONS_DEFAULT_FROM_EMAIL", ENV_TOKENS["CONTACT_EMAIL"])
1 change: 1 addition & 0 deletions tutornotifications/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
("NOTIFICATIONS_VERSION", __version__),
("NOTIFICATIONS_ENABLE_SHOW_EMAIL_CHANNEL", True),
("NOTIFICATIONS_ENABLE_SHOW_PUSH_CHANNEL", False),
("NOTIFICATIONS_DEFAULT_FROM_EMAIL", "{{ CONTACT_EMAIL }}")
]
)

Expand Down