Sha256: 3f7c22f4951995c82bd33c6085e4193d2c0d4838bba132ed0d3ec2c313eeb0a0

Contents?: true

Size: 494 Bytes

Versions: 27

Compression:

Stored size: 494 Bytes

Contents

class ContactMailer < ActionMailer::Base
  def new_message_email(message)
    @message = message

    #if message.attachment?
    #  attachments[message.attachment.identifier] = File.read(message.attachment.current_path)
    #end

    mail(
        from: Settings.default_email_from(default: 'noreply@rscx.ru'),
        to: Settings.form_email(default: 'i43ack@gmail.com'),
        subject: "[#{Settings.email_topic(default: 'с сайта')}] #{message.name} #{message.email}"
    )
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
ack_rocket_cms-0.9.2 app/mailers/contact_mailer.rb
ack_rocket_cms-0.9.1.3 app/mailers/contact_mailer.rb
ack_rocket_cms-0.9.1.2 app/mailers/contact_mailer.rb
ack_rocket_cms-0.9.1.1 app/mailers/contact_mailer.rb
ack_rocket_cms-0.9.1 app/mailers/contact_mailer.rb
ack_rocket_cms-0.9 app/mailers/contact_mailer.rb
ack_rocket_cms-0.8.2 app/mailers/contact_mailer.rb
ack_rocket_cms-0.8.0 app/mailers/contact_mailer.rb
ack_rocket_cms-0.7.7.1 app/mailers/contact_mailer.rb
ack_rocket_cms-0.7.7 app/mailers/contact_mailer.rb
ack_rocket_cms-0.7.6.4 app/mailers/contact_mailer.rb
ack_rocket_cms-0.7.6.3 app/mailers/contact_mailer.rb
ack_rocket_cms-0.7.6.2 app/mailers/contact_mailer.rb
ack_rocket_cms-0.7.6.1 app/mailers/contact_mailer.rb
ack_rocket_cms-0.7.6 app/mailers/contact_mailer.rb
ack_rocket_cms-0.7.5.2 app/mailers/contact_mailer.rb
ack_rocket_cms-0.7.5.1 app/mailers/contact_mailer.rb
ack_rocket_cms-0.7.5 app/mailers/contact_mailer.rb
ack_rocket_cms-0.7.4.1 app/mailers/contact_mailer.rb
ack_rocket_cms-0.7.4 app/mailers/contact_mailer.rb