mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 23:16:23 +02:00
17 lines
524 B
Ruby
17 lines
524 B
Ruby
class WhiteIpMailer < ApplicationMailer
|
|
def api_ip_address_updated
|
|
email = params[:email]
|
|
@api_user = params[:api_user]
|
|
@white_ip = params[:white_ip]
|
|
subject = '[Important] Whitelisted IP Address Change Notification'
|
|
mail(to: email, subject: subject)
|
|
end
|
|
|
|
def api_ip_address_deleted
|
|
email = params[:email]
|
|
@api_user = params[:api_user]
|
|
@white_ip = params[:white_ip]
|
|
subject = '[Important] Whitelisted IP Address Removal Notification'
|
|
mail(to: email, subject: subject)
|
|
end
|
|
end
|