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