Make open source
This commit is contained in:
19
app/mailers/guest_mailer.rb
Normal file
19
app/mailers/guest_mailer.rb
Normal file
@ -0,0 +1,19 @@
|
||||
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
|
Reference in New Issue
Block a user