diff --git a/app/mailers/updated_terms_mailer.rb b/app/mailers/updated_terms_mailer.rb new file mode 100644 index 0000000000..2833158eec --- /dev/null +++ b/app/mailers/updated_terms_mailer.rb @@ -0,0 +1,12 @@ +class UpdatedTermsMailer < ApplicationMailer + layout nil + + def notify(recipient, name) + @recipient = recipient + @name = name + @accept_terms_url = "#{CheckConfig.get('checkdesk_client')}/check/updated-terms-url" + subject = I18n.t("mails_notifications.updated_terms.subject") + Rails.logger.info "Sending ToS e-mail to #{@recipient}" + mail(to: @recipient, email_type: 'updated_terms', subject: subject) + end +end diff --git a/app/views/updated_terms_mailer/notify.html.erb b/app/views/updated_terms_mailer/notify.html.erb new file mode 100644 index 0000000000..5fe547cbe6 --- /dev/null +++ b/app/views/updated_terms_mailer/notify.html.erb @@ -0,0 +1,131 @@ +<%= render "shared/header" %> + + + + + +
+ |
+
+
+
+
+ <%= I18n.t(:"mails_notifications.updated_terms.hello", name: @name) %>
+
+
+ <%= I18n.t("mails_notifications.updated_terms.title") %>
+
+
+
+
+ <%= I18n.t(:"mails_notifications.updated_terms.body") %>
+
+
+
+
+
+
+
+
+ <%= t("mails_notifications.updated_terms.more_info") %>
+
+
|
---|