cartodb-4.42/app/mailers/sync_mailer.rb

17 lines
531 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
class SyncMailer < ActionMailer::Base
default from: Cartodb.get_config(:mailer, 'from')
layout 'mail'
def max_retries_reached(user, visualization_id, dataset_name, error_code, error_message)
@error_code = error_code
@error_message = error_message
@dataset_name = dataset_name
@link = "#{user.public_url}#{CartoDB.path(self, 'public_tables_show', { id: visualization_id })}"
@subject = "There was a problem while syncing your dataset"
mail :to => user.email,
:subject => @subject
end
end