mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 06:26:15 +02:00
15 lines
430 B
Ruby
15 lines
430 B
Ruby
class CertificateMailer < ApplicationMailer
|
|
def certificate_signing_requested(email:, api_user:, csr:)
|
|
@certificate = csr
|
|
@api_user = api_user
|
|
subject = 'New Certificate Signing Request Received'
|
|
mail(to: email, subject: subject)
|
|
end
|
|
|
|
def signed(email:, api_user:, crt:)
|
|
@crt = crt
|
|
@api_user = api_user
|
|
subject = 'Certificate Signing Confirmation'
|
|
mail(to: email, subject: subject)
|
|
end
|
|
end
|