Class: C80FeedbackForm::MessageFeedbackMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/c80_feedback_form/message_feedback_mailer.rb

Instance Method Summary collapse

Instance Method Details

#send_mess(message, subject) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'app/mailers/c80_feedback_form/message_feedback_mailer.rb', line 7

def send_mess(message, subject)
  @message = format_message(message)

  puts "<MessageFeedbackMailer.send_mess> Отправляем сообщение."
  mail(subject: subject) do |format|
    format.html { render "mail_mess" }
  end

  #puts "#{SiteProps.first.mail_to}"
end