forked from External/greenlight
Send an email to the user when a recording is done processing
Had to add an email attribute to users to store their email to send the notification. Will only send it for user rooms since they are the only ones we know who to notify.
This commit is contained in:
@ -37,5 +37,36 @@ module Greenlight
|
||||
# BigBlueButton
|
||||
config.bigbluebutton_endpoint = ENV['BIGBLUEBUTTON_ENDPOINT']
|
||||
config.bigbluebutton_secret = ENV['BIGBLUEBUTTON_SECRET']
|
||||
|
||||
# GreenLight
|
||||
config.use_webhooks = ENV['GREENLIGHT_USE_WEBHOOKS']
|
||||
config.smtp_from = ENV['SMTP_FROM']
|
||||
config.smtp_server = ENV['SMTP_SERVER']
|
||||
config.smtp_domain = ENV['SMTP_DOMAIN']
|
||||
config.smtp_port = ENV['SMTP_PORT'] || 587
|
||||
config.smtp_username = ENV['SMTP_USERNAME']
|
||||
config.smtp_password = ENV['SMTP_PASSWORD']
|
||||
config.smtp_auth = ENV['SMTP_AUTH'] || "login"
|
||||
config.smtp_starttls_auto = ENV['SMTP_STARTTLS_AUTO'].nil? ? true : ENV['SMTP_STARTTLS_AUTO']
|
||||
config.smtp_tls = ENV['SMTP_TLS'].nil? ? false : ENV['SMTP_TLS']
|
||||
|
||||
# SMTP
|
||||
config.action_mailer.default_url_options = { host: ENV['GREENLIGHT_DOMAIN'] }
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.perform_deliveries = true
|
||||
config.action_mailer.raise_delivery_errors = true
|
||||
config.action_mailer.smtp_settings = {
|
||||
:address => config.smtp_server,
|
||||
:domain => config.smtp_domain,
|
||||
:port => config.smtp_port,
|
||||
:user_name => config.smtp_username,
|
||||
:password => config.smtp_password,
|
||||
:authentication => config.smtp_auth,
|
||||
:enable_starttls_auto => config.smtp_starttls_auto,
|
||||
:tls => config.smtp_tls
|
||||
}
|
||||
config.action_mailer.default_options = {
|
||||
from: config.smtp_from
|
||||
}
|
||||
end
|
||||
end
|
||||
|
@ -82,6 +82,12 @@ en-US:
|
||||
subject: "%{user} invited you to a meeting"
|
||||
my_room: my room
|
||||
no: No
|
||||
notification_mailer:
|
||||
recording_ready_email:
|
||||
hi: "Hi, %{name}"
|
||||
phrase1: "One of your recordings has just been made available."
|
||||
phrase2: "Access the following website to view it and publish to other users: %{url}"
|
||||
subject: "Your recording is ready!"
|
||||
oauth_signup: Signup for customized sessions
|
||||
past_recordings: Past Recordings
|
||||
footer_html: "%{greenlight_link} build %{version}, Powered by %{bbb_link}"
|
||||
|
Reference in New Issue
Block a user