6772312ea7
The primary license of the project is changing to: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later with some specific files to be licensed under the one of two licenses: CC0-1.0 LGPL-3.0-or-later This commit is one of the many steps to relicense the entire codebase. Documentation granting permission for this relicensing (from all past contributors who hold copyrights) is on file with Software Freedom Conservancy, Inc.
33 lines
979 B
Ruby
33 lines
979 B
Ruby
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
|
class ExportMailer < BaseMailer
|
|
|
|
# Subject can be set in your I18n file at config/locales/en.yml
|
|
# with the following lookup:
|
|
#
|
|
# en.export_mailer.export_payments_completed_notification.subject
|
|
#
|
|
def export_payments_completed_notification(export)
|
|
@export = export
|
|
|
|
mail(to: @export.user.email, subject: 'Your payment export is available!')
|
|
end
|
|
|
|
def export_payments_failed_notification(export)
|
|
@export = export
|
|
|
|
mail(to: @export.user.email, subject: 'Your payment export has failed')
|
|
end
|
|
|
|
|
|
def export_recurring_donations_completed_notification(export)
|
|
@export = export
|
|
|
|
mail(to: @export.user.email, subject: 'Your recurring donations export is available!')
|
|
end
|
|
|
|
def export_recurring_donations_failed_notification(export)
|
|
@export = export
|
|
|
|
mail(to: @export.user.email, subject: 'Your recurring donations export has failed')
|
|
end
|
|
end
|