Class: UsergroupMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/usergroup_mailer.rb

Instance Method Summary collapse

Instance Method Details

#invitation_mail(event) ⇒ Object


2
3
4
5
6
7
8
9
10
11
# File 'app/mailers/usergroup_mailer.rb', line 2

def invitation_mail(event)
  @event = event
  options = {
    from: %Q("#{I18n.tw('name')}" <[email protected]>),
    to: "[email protected]",
    subject: "#{Whitelabel[:label_id].upcase} Info: #{event.name}",
  }
  default_url_options[:host] = "#{Whitelabel[:label_id]}.onruby.#{Whitelabel[:tld]}"
  mail(options)
end