Sha256: bc5ba442169bd31af0f0d2fe31455f1b3353c2ed63089028bcfe85c2791c1227

Contents?: true

Size: 467 Bytes

Versions: 79

Compression:

Stored size: 467 Bytes

Contents

module Tenon
  class ContactMailer < ActionMailer::Base
    # TODO: Find a better way to set the host
    # default_url_options[:host] = MySettings.site_url ? MySettings.site_url.gsub('http://', '') : 'localhost:3000'

    def contact_notification(contact)
      @contact = contact
      mail(
        to: Tenon::MySettings.contact_email,
        subject: "#{Tenon::MySettings.site_name} - New Contact Request",
        from: @contact.email
      )
    end
  end
end

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
tenon-1.0.18 app/mailers/tenon/contact_mailer.rb
tenon-1.0.17 app/mailers/tenon/contact_mailer.rb
tenon-1.0.16 app/mailers/tenon/contact_mailer.rb
tenon-1.0.15 app/mailers/tenon/contact_mailer.rb
tenon-1.0.14 app/mailers/tenon/contact_mailer.rb
tenon-1.0.13 app/mailers/tenon/contact_mailer.rb
tenon-1.0.12 app/mailers/tenon/contact_mailer.rb
tenon-1.0.11 app/mailers/tenon/contact_mailer.rb
tenon-1.0.10 app/mailers/tenon/contact_mailer.rb
tenon-1.0.9 app/mailers/tenon/contact_mailer.rb
tenon-1.0.8 app/mailers/tenon/contact_mailer.rb
tenon-1.0.7 app/mailers/tenon/contact_mailer.rb
tenon-1.0.6 app/mailers/tenon/contact_mailer.rb
tenon-1.0.5 app/mailers/tenon/contact_mailer.rb
tenon-1.0.4 app/mailers/tenon/contact_mailer.rb
tenon-1.0.3 app/mailers/tenon/contact_mailer.rb
tenon-1.0.2 app/mailers/tenon/contact_mailer.rb
tenon-1.0.1 app/mailers/tenon/contact_mailer.rb
tenon-1.0 app/mailers/tenon/contact_mailer.rb