Files
wedding/app/mailers/guest_mailer.rb
John Lees-Miller 6e82ba528b Make open source
2018-10-27 16:46:26 +01:00

20 lines
436 B
Ruby

class GuestMailer < ApplicationMailer
default from: ENV['FROM_EMAIL'], reply_to: ENV['CONTACT_EMAIL']
def confirmation_email(guest)
@guest = guest
mail(
to: guest.name_with_email,
subject: "#{I18n.t(:wedding_name)}: RSVP Confirmation"
)
end
def welcome_back_email(guest)
@guest = guest
mail(
to: guest.name_with_email,
subject: "#{I18n.t(:wedding_name)}: Your RSVP"
)
end
end