Sha256: c047101172dd986774123c3f9cf05272555659a78a3a80ee44486ea4a75ac7c3

Contents?: true

Size: 429 Bytes

Versions: 6

Compression:

Stored size: 429 Bytes

Contents

class RegistrationMailer < MandrillMailer::TemplateMailer
  default from: 'welcome@yourdomain.com'

  def registered(user)
    mandrill_mail(
        template: 'registration',
        subject: 'Welcome',
        to: user.email,
        vars: {
            'USER_NAME' => user.display_name,
            'CONFIRMATION_LINK' => user.email_approvement_code
        },
        important: true,
        inline_css: true
    )
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
grape-gen-0.0.6 template/mailers/registration_mailer.rb
grape-gen-0.0.5 template/mailers/registration_mailer.rb
grape-gen-0.0.4 template/mailers/registration_mailer.rb
grape-gen-0.0.3 template/mailers/registration_mailer.rb
grape-gen-0.0.2 template/mailers/registration_mailer.rb
grape-gen-0.0.1 template/mailers/registration_mailer.rb