2015-04-10 20:19:08 +00:00
|
|
|
module JamRuby
|
|
|
|
|
# sends out a boring ale
|
2015-04-21 16:26:55 +00:00
|
|
|
class AdminMailer < ActionMailer::Base
|
2015-04-10 20:19:08 +00:00
|
|
|
include SendGrid
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DEFAULT_SENDER = "JamKazam <noreply@jamkazam.com>"
|
|
|
|
|
|
|
|
|
|
default :from => DEFAULT_SENDER
|
|
|
|
|
|
|
|
|
|
sendgrid_category :use_subject_lines
|
|
|
|
|
#sendgrid_enable :opentrack, :clicktrack # this makes our emails creepy, imo (seth)
|
|
|
|
|
sendgrid_unique_args :env => Environment.mode
|
|
|
|
|
|
|
|
|
|
def alerts(options)
|
2015-04-22 20:43:36 +00:00
|
|
|
mail(to: APP_CONFIG.email_recurly_notice,
|
|
|
|
|
from: APP_CONFIG.email_generic_from,
|
2015-04-10 20:19:08 +00:00
|
|
|
body: options[:body],
|
|
|
|
|
content_type: "text/plain",
|
|
|
|
|
subject: options[:subject])
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|