Add global email sender configuration and functionality #18
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.
This pull request introduces a new feature to set a global email sender for the
pprOjsPlugin. The most important changes include adding a new service to overwrite the sender's email, updating the plugin settings to include the global email sender, and modifying the template to allow configuration of this new setting.New Feature: Global Email Sender
pprOjsPlugin/services/email/PPREmailSenderOverwrite.inc.php: Added a new service classPPREmailSenderOverwriteto overwrite the sender's email. This class registers a hook to modify the sender's email address if a global email sender is configured.pprOjsPlugin/settings/PPRPluginSettings.inc.php: Updated thePPRPluginSettingsclass to include a new configuration variableglobalEmailSenderand added a method to retrieve its value. [1] [2]pprOjsPlugin/PeerPreReviewProgramPlugin.inc.php: Registered the newPPREmailSenderOverwriteservice within the plugin's initialization process.pprOjsPlugin/templates/ppr/pluginSettingsForm.tpl: Modified the plugin settings form template to include a new text input for configuring the global email sender.pprOjsPlugin/locale/en_US/locale.po: Added a new localization string for the global email sender setting label.