Class: Goldencobra::ConfirmationMailer

Inherits:
ActionMailer::Base show all
Defined in:
app/mailers/goldencobra/confirmation_mailer.rb

Instance Method Summary collapse

Methods inherited from ActionMailer::Base

#do_not_deliver!, #process

Instance Method Details

#send_confirmation_mail(email = nil) ⇒ Object



7
8
9
10
11
12
13
# File 'app/mailers/goldencobra/confirmation_mailer.rb', line 7

def send_confirmation_mail(email = nil)
  if email
    mail to: email, subject: 'Herzlich Willkommen bei Goldencobra.de'
  else
    do_not_deliver!
  end
end

#send_support_mail(link) ⇒ Object



15
16
17
18
19
# File 'app/mailers/goldencobra/confirmation_mailer.rb', line 15

def send_support_mail(link)
  @link = link
  mail to: Goldencobra::Setting.for_key("goldencobra.live-support.email"),
  subject: "Live Support Anfrage von: #{Goldencobra::Setting.for_key("goldencobra.url")}"
end