Files
wedding/app/mailers/guest_mailer.rb
2020-05-30 09:40:57 +01:00

22 lines
467 B
Ruby

# frozen_string_literal: true
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