mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Modified white ip form and created mailer
This commit is contained in:
parent
311834c085
commit
e00e44c9b8
10 changed files with 83 additions and 21 deletions
17
app/mailers/white_ip_mailer.rb
Normal file
17
app/mailers/white_ip_mailer.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue