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.1.4 app/mailers/tenon/contact_mailer.rb
tenon-1.1.3 app/mailers/tenon/contact_mailer.rb
tenon-1.1.2 app/mailers/tenon/contact_mailer.rb
tenon-1.1.1 app/mailers/tenon/contact_mailer.rb
tenon-1.0.76 app/mailers/tenon/contact_mailer.rb
tenon-1.0.75 app/mailers/tenon/contact_mailer.rb
tenon-1.0.74 app/mailers/tenon/contact_mailer.rb
tenon-1.0.73 app/mailers/tenon/contact_mailer.rb
tenon-1.0.72 app/mailers/tenon/contact_mailer.rb
tenon-1.0.71 app/mailers/tenon/contact_mailer.rb
tenon-1.0.70 app/mailers/tenon/contact_mailer.rb
tenon-1.0.69 app/mailers/tenon/contact_mailer.rb
tenon-1.0.68 app/mailers/tenon/contact_mailer.rb
tenon-1.0.67 app/mailers/tenon/contact_mailer.rb
tenon-1.0.66 app/mailers/tenon/contact_mailer.rb
tenon-1.0.65 app/mailers/tenon/contact_mailer.rb
tenon-1.0.64 app/mailers/tenon/contact_mailer.rb
tenon-1.0.63 app/mailers/tenon/contact_mailer.rb
tenon-1.0.62 app/mailers/tenon/contact_mailer.rb
tenon-1.0.61 app/mailers/tenon/contact_mailer.rb