Class: ContactMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- ContactMailer
- Defined in:
- app/mailers/contact_mailer.rb
Instance Method Summary collapse
Instance Method Details
#new_message_email(message) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/mailers/contact_mailer.rb', line 2 def () @message = #if message.attachment? # attachments[message.attachment.identifier] = File.read(message.attachment.current_path) #end mail( from: Settings.default_email_from(default: '[email protected]'), to: Settings.form_email(default: '[email protected]'), subject: "[#{Settings.email_topic(default: 'с сайта')}] #{.name} #{.email}" ) end |