Sha256: 59cf9ccf2087587f4271ae8ab1ca86e95ea47aadac9c6d18de1dc588b3a10b6a
Contents?: true
Size: 856 Bytes
Versions: 2
Compression:
Stored size: 856 Bytes
Contents
class AdministrationMailer < ActionMailer::Base include Roadie::Rails::Automatic default :from => "#{Setting.first.try(:company_name)} <#{Setting.first.try(:contact_email)}>" def daily_digest( admin_user, yesterdays_contact_messages, pending_comments ) @recipient = admin_user @contact_messages = yesterdays_contact_messages @pending_comments = pending_comments # FIXME - only the email addresses show up. not the names :-( recipient = "#{@recipient.name} <#{@recipient.email}>" reply_to = "#{Setting.first.try(:company_name)} <#{Setting.first.try(:contact_email)}>" mail to: recipient, reply_to: reply_to, subject: "#{t('admin.mailer.daily_digest.subject')}- #{l Time.zone.now.to_date}" do |format| format.html { render layout: 'admin_mailers.html.erb' } format.text end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tkh_mailing_list-0.11.3 | app/mailers/administration_mailer.rb |
tkh_mailing_list-0.11.2 | app/mailers/administration_mailer.rb |