internetee-registry/app/mailers/white_ip_mailer.rb
2023-07-05 15:28:43 +03:00

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