Sha256: f55fa8a378a1ed28205d03308d9ea516b33ba4e28feafc94faa3541f8889f7ad

Contents?: true

Size: 314 Bytes

Versions: 4

Compression:

Stored size: 314 Bytes

Contents

class ContactMailer < ActionMailer::Base
  add_template_helper(EmailHelper)
  default from: ENV["SENDER_EMAIL"]


  def contact_message(name, email, message)
    @name = name
    @email = email
    @message = message

    mail to: ENV["SENDER_EMAIL"], subject: "New message received at #{ENV["DOMAIN"]}"
  end
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
railsbricks-3.7.0 lib/railsbricks/assets/mailers/contact_mailer.rb
railsbricks-reloaded-3.2.1 lib/railsbricks/assets/mailers/contact_mailer.rb
phoenixbricks-3.2.7 lib/railsbricks/assets/mailers/contact_mailer.rb
phoenixbricks-3.2.6 lib/railsbricks/assets/mailers/contact_mailer.rb