Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (20 sloc) 848 Bytes
class Notifier < ActionMailer::Base
def job_posted(recipient, company, sent_at = Time.now)
subject "#{AppConfig.site_name} - Thanks for Posting"
recipients recipient
from AppConfig.from_email
sent_on sent_at
content_type "multipart/alternative"
part :content_type => "text/plain",
:body => render_message("job_posted", :company => company)
end
def somebody_applied(recipient, name, message, filename, id, sent_at = Time.now)
subject "#{AppConfig.site_name} - New Job Applicant"
recipients recipient
from AppConfig.from_email
sent_on sent_at
content_type "multipart/alternative"
part :content_type => "text/plain",
:body => render_message("somebody_applied", :name => name, :message => message, :filename => filename, :id => id)
end
end