This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
forked from mattermost/mattermost-webapp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exposes Reply-To email header configuration in UI. (mattermost#2327)
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ export default class EmailSettings extends AdminSettings { | |
config.EmailSettings.EnablePreviewModeBanner = this.state.enablePreviewModeBanner; | ||
config.EmailSettings.FeedbackName = this.state.feedbackName; | ||
config.EmailSettings.FeedbackEmail = this.state.feedbackEmail; | ||
config.EmailSettings.ReplyToAddress = this.state.replyToAddress; | ||
config.EmailSettings.FeedbackOrganization = this.state.feedbackOrganization; | ||
config.EmailSettings.EnableSMTPAuth = this.state.enableSMTPAuth; | ||
config.EmailSettings.SMTPUsername = this.state.smtpUsername; | ||
|
@@ -251,6 +252,26 @@ export default class EmailSettings extends AdminSettings { | |
disabled={!this.state.sendEmailNotifications} | ||
setByEnv={this.isSetByEnv('EmailSettings.FeedbackEmail')} | ||
/> | ||
<TextSetting | ||
id='replyToAddress' | ||
label={ | ||
<FormattedMessage | ||
id='admin.email.replyToAddressTitle' | ||
defaultMessage='Notification Reply-To Address:' | ||
/> | ||
} | ||
placeholder={Utils.localizeMessage('admin.email.notificationEmailExample', 'Ex: "[email protected]", "[email protected]"')} | ||
helpText={ | ||
<FormattedMessage | ||
id='admin.email.replyToAddressDescription' | ||
defaultMessage='Email address used in the Reply-To header when sending notification emails from Mattermost.' | ||
/> | ||
} | ||
value={this.state.replyToAddress} | ||
onChange={this.handleChange} | ||
disabled={!this.state.sendEmailNotifications} | ||
setByEnv={this.isSetByEnv('EmailSettings.ReplyToAddress')} | ||
/> | ||
<TextSetting | ||
id='feedbackOrganization' | ||
label={ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters