Add new mail sender for internal notifications

pull/16368/head
Moisés Calzado 3 years ago
parent 034341cce7
commit f14947e160

@ -11,7 +11,8 @@ class ReporterMailer < ActionMailer::Base
def named_maps_near_the_limit(message) def named_maps_near_the_limit(message)
mail_to = Cartodb.get_config(:mailer, 'support_email') mail_to = Cartodb.get_config(:mailer, 'support_email')
mail_from = Cartodb.get_config(:mailer, 'internal_notifications_email')
mail to: mail_to, subject: message if mail_to mail from: mail_from, to: mail_to, subject: message if mail_to && mail_from
end end
end end

Loading…
Cancel
Save