diff --git a/i18n/en.i18n.json b/i18n/en.i18n.json index b2061b7b770..6148d9415fc 100644 --- a/i18n/en.i18n.json +++ b/i18n/en.i18n.json @@ -97,6 +97,7 @@ "Follow_social_profiles" : "Follow our social profiles, fork us on github and share your thoughts about the rocket.chat app on our trello board.", "Forgot_password" : "Forgot your password", "Fork_it_on_github" : "Fork it on github", + "From_Email": "From Email", "Get_to_know_the_team" : "Get to know the Rocket.Team", "github_no_public_email" : "You don't have any email as public email in your GitHub account", "Have_your_own_chat" : "Have your own web chat. Developed with Meteor.com, the Rocket.Chat is a great solution for developers looking forward to build and evolve their own chat platform.", @@ -322,4 +323,4 @@ "You_will_not_be_able_to_recover" : "You will not be able to recover!", "Your_entry_has_been_deleted" : "Your entry has been deleted.", "Your_Open_Source_solution" : "Your own Open Source chat solution" -} \ No newline at end of file +} diff --git a/packages/rocketchat-lib/settings/server/startup.coffee b/packages/rocketchat-lib/settings/server/startup.coffee index 421f1d53af5..f67cfa5ec2b 100644 --- a/packages/rocketchat-lib/settings/server/startup.coffee +++ b/packages/rocketchat-lib/settings/server/startup.coffee @@ -43,6 +43,7 @@ Meteor.startup -> RocketChat.settings.add 'SMTP_Port', '', { type: 'string', group: 'SMTP' } RocketChat.settings.add 'SMTP_Username', '', { type: 'string', group: 'SMTP' } RocketChat.settings.add 'SMTP_Password', '', { type: 'string', group: 'SMTP' } + RocketChat.settings.add 'From_Email', 'no-reply@rocket.chat', { type: 'string', group: 'SMTP' } RocketChat.settings.addGroup 'Message' RocketChat.settings.add 'Message_AllowEditing', true, { type: 'boolean', group: 'Message', public: true } diff --git a/server/lib/accounts.coffee b/server/lib/accounts.coffee index 6f234f13b65..34b628048fd 100644 --- a/server/lib/accounts.coffee +++ b/server/lib/accounts.coffee @@ -1,8 +1,8 @@ # Deny Account.createUser in client Accounts.config { forbidClientAccountCreation: true } -Accounts.emailTemplates.siteName = "ROCKET.CHAT"; -Accounts.emailTemplates.from = "ROCKET.CHAT "; +Accounts.emailTemplates.siteName = RocketChat.settings.get 'Site_Name'; +Accounts.emailTemplates.from = "#{RocketChat.settings.get 'Site_Name'} <#{RocketChat.settings.get 'From_Email'}>"; verifyEmailText = Accounts.emailTemplates.verifyEmail.text Accounts.emailTemplates.verifyEmail.text = (user, url) ->