This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
barleysodas/app/models/invitation_mailer.rb

10 lines
360 B
Ruby

class InvitationMailer < ActionMailer::Base
def invitation(invitation, recipient)
@headers["Content-Type"] = "text/plain"
@recipients = recipient
@from = 'BarleySodas <no-reply@barleysodas.com>'
@subject = "You've been invited to BarleySodas!"
@body["invitation"] = invitation
@body["people_title"] = invitation.people.title
end
end