app/mailers/alchemy/messages_mailer.rb
# frozen_string_literal: true
module Alchemy
class MessagesMailer < BaseMailer
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
end
end