Sha256: eb4a6a49882f505ae3fc0f88359f50806ebc57fd53b930f3b3da277462232c58

Contents?: true

Size: 485 Bytes

Versions: 56

Compression:

Stored size: 485 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # A custom mailer for Decidim so we can notify users to verify
  # his own newsletter notifications settings. GDPR releated
  class NewslettersOptInMailer < ApplicationMailer
    def notify(user, token)
      @user = user
      @organization = user.organization
      @token = token

      mail(to: user.email, subject: I18n.t("decidim.newsletters_opt_in_mailer.notify.subject", organization_name: @organization.name))
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
decidim-core-0.26.10 app/mailers/decidim/newsletters_opt_in_mailer.rb
decidim-core-0.26.9 app/mailers/decidim/newsletters_opt_in_mailer.rb
decidim-core-0.26.8 app/mailers/decidim/newsletters_opt_in_mailer.rb
decidim-core-0.26.7 app/mailers/decidim/newsletters_opt_in_mailer.rb
decidim-core-0.26.5 app/mailers/decidim/newsletters_opt_in_mailer.rb
decidim-core-0.26.4 app/mailers/decidim/newsletters_opt_in_mailer.rb
decidim-core-0.26.3 app/mailers/decidim/newsletters_opt_in_mailer.rb
decidim-core-0.26.2 app/mailers/decidim/newsletters_opt_in_mailer.rb
decidim-core-0.26.1 app/mailers/decidim/newsletters_opt_in_mailer.rb
decidim-core-0.26.0 app/mailers/decidim/newsletters_opt_in_mailer.rb
decidim-core-0.26.0.rc2 app/mailers/decidim/newsletters_opt_in_mailer.rb
decidim-core-0.26.0.rc1 app/mailers/decidim/newsletters_opt_in_mailer.rb
decidim-core-0.25.2 app/mailers/decidim/newsletters_opt_in_mailer.rb
decidim-core-0.25.1 app/mailers/decidim/newsletters_opt_in_mailer.rb
decidim-core-0.25.0 app/mailers/decidim/newsletters_opt_in_mailer.rb
decidim-core-0.25.0.rc4 app/mailers/decidim/newsletters_opt_in_mailer.rb
decidim-core-0.25.0.rc3 app/mailers/decidim/newsletters_opt_in_mailer.rb
decidim-core-0.25.0.rc2 app/mailers/decidim/newsletters_opt_in_mailer.rb
decidim-core-0.25.0.rc1 app/mailers/decidim/newsletters_opt_in_mailer.rb
decidim-core-0.24.3 app/mailers/decidim/newsletters_opt_in_mailer.rb