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



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

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