Allow for specification of email sender (#311)

* <Allow for configuration of email sender>

* <Configure for localization>

* <Added a change in verify_mail>
This commit is contained in:
John Ma
2018-11-08 10:27:26 -05:00
committed by Jesus Federico
parent 33d43c8f43
commit f94678627c
4 changed files with 8 additions and 5 deletions

View File

@ -17,11 +17,11 @@
# with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
class UserMailer < ApplicationMailer
default from: 'notifications@example.com'
default from: Rails.configuration.email_sender
def verify_email(user, url)
@user = user
@url = url
mail(to: @user.email, subject: 'Welcome to BigBlueButton!')
mail(to: @user.email, subject: t('landing.welcome'))
end
end