Class: Alchemy::MessagesMailer

Inherits:
BaseMailer show all
Defined in:
app/mailers/alchemy/messages_mailer.rb

Instance Method Summary collapse

Instance Method Details

#contact_form_mail(message, mail_to, mail_from, subject) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'app/mailers/alchemy/messages_mailer.rb', line 5

def contact_form_mail(message, mail_to, mail_from, subject)
  @message = message
  mail(
    from: mail_from,
    to: mail_to,
    reply_to: message.try(:email),
    subject: subject
  )
end