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

View File

@ -22,9 +22,9 @@
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<h1>Welcome to Greenlight!, <%= @user.name %></h1>
<h1>Welcome to BigBlueButton!, <%= @user.name %></h1>
<p>
You have successfully signed up for Greenlight,
You have successfully registered your Greenlight account,
your username is: <%= @user.email %>.<br>
</p>
<p>

View File

@ -20,7 +20,7 @@
Welcome to Greenlight, <%= @user.name %>
===============================================
You have successfully signed up for Greenlight,
You have successfully registered your Greenlight account,
your username is: <%= @user.email %>.
To verify your account, just follow this link: <%= link_to 'verify your email', @url %>.

View File

@ -94,6 +94,9 @@ SMTP_PASSWORD=
SMTP_AUTH=
SMTP_STARTTLS_AUTO=
# Specify the email address that all mail is sent from
EMAIL_SENDER=
# Prefix for the applications root URL.
# Useful for deploying the application to a subdirectory, which is highly recommended
# if deploying on a BigBlueButton server. Keep in mind that if you change this, you'll