69 lines
1.7 KiB
Ruby
69 lines
1.7 KiB
Ruby
class NotificationMailer < ApplicationMailer
|
|
|
|
# Subject can be set in your I18n file at config/locales/en.yml
|
|
# with the following lookup:
|
|
#
|
|
# en.notification_mailer.expiration_in_60d.subject
|
|
#
|
|
def expiration_in_60d
|
|
@notification = params[:notification]
|
|
|
|
mail to: params[:notification].member.email
|
|
end
|
|
|
|
# Subject can be set in your I18n file at config/locales/en.yml
|
|
# with the following lookup:
|
|
#
|
|
# en.notification_mailer.expiration_in_30d.subject
|
|
#
|
|
def expiration_in_30d
|
|
@notification = params[:notification]
|
|
|
|
mail to: params[:notification].member.email
|
|
end
|
|
|
|
# Subject can be set in your I18n file at config/locales/en.yml
|
|
# with the following lookup:
|
|
#
|
|
# en.notification_mailer.expired.subject
|
|
#
|
|
def expired
|
|
@notification = params[:notification]
|
|
|
|
mail to: params[:notification].member.email
|
|
end
|
|
|
|
# Subject can be set in your I18n file at config/locales/en.yml
|
|
# with the following lookup:
|
|
#
|
|
# en.notification_mailer.expired_30d_ago.subject
|
|
#
|
|
def expired_30d_ago
|
|
@notification = params[:notification]
|
|
|
|
mail to: params[:notification].member.email
|
|
end
|
|
|
|
# Subject can be set in your I18n file at config/locales/en.yml
|
|
# with the following lookup:
|
|
#
|
|
# en.notification_mailer.expired_60d_ago.subject
|
|
#
|
|
def expired_60d_ago
|
|
@notification = params[:notification]
|
|
|
|
mail to: params[:notification].member.email
|
|
end
|
|
|
|
# Subject can be set in your I18n file at config/locales/en.yml
|
|
# with the following lookup:
|
|
#
|
|
# en.notification_mailer.cancelled.subject
|
|
#
|
|
def cancelled
|
|
@notification = params[:notification]
|
|
|
|
mail to: params[:notification].member.email
|
|
end
|
|
end
|