Sha256: e0de5810155f09c20e5e797746b8be069571cda33ae1e3f273f6cd94a2f54a44
Contents?: true
Size: 771 Bytes
Versions: 8
Compression:
Stored size: 771 Bytes
Contents
module C80FeedbackForm class MessageFeedbackMailer < ActionMailer::Base default from: Proc.new { SiteProp.first.mail_from }, to: Proc.new { SiteProp.first.mail_to } 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 private def format_message(message) result = "<br> • Имя: #{message.name}" result += "<br> • Email или телефон: #{message.email_or_phone}" result += "<br> • Сообщение: #{message.comment}" result end end end
Version data entries
8 entries across 8 versions & 1 rubygems