Sha256: 68b23c7faebcf5bcfdc68e1a8de78662dc22d0e0c4bea63f5d0288da3c8ea968
Contents?: true
Size: 404 Bytes
Versions: 24
Compression:
Stored size: 404 Bytes
Contents
class DispatchMailer < ActionMailer::Base default :from => MySettings.newsletter_email default_url_options[:host] = MySettings.site_url ? MySettings.site_url.gsub('http://', '') : 'localhost:3000' def dispatch(dispatch, email, name, subscriber_id) @name, @dispatch, @email, @subscriber_id = name, dispatch, email, subscriber_id mail(:to => email, :subject => dispatch.subject) end end
Version data entries
24 entries across 24 versions & 1 rubygems