Class: InvitationMailer

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

Instance Method Summary collapse

Instance Method Details

#invitation(invitation) ⇒ Object



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

def invitation(invitation)
  @invitation = invitation
  subject = I18n.t(:subject,
                   :scope   => [:saucy, :mailers, :invitation_mailer, :invititation],
                   :default => "Invitation")
  mail :to       => invitation.email,
       :subject  => subject,
       :reply_to => invitation.sender_email,
       :from     => sender_name_and_support_address
end