Class: CommandTower::EmailVerificationMailer
- Inherits:
-
ApplicationMailer
- Object
- ActionMailer::Base
- ApplicationMailer
- CommandTower::EmailVerificationMailer
- Defined in:
- app/mailers/command_tower/email_verification_mailer.rb
Constant Summary
Constants inherited from ApplicationMailer
ApplicationMailer::FALLBACK_FROM
Instance Method Summary collapse
Methods inherited from ApplicationMailer
smtp_from_address, #smtp_from_address
Instance Method Details
#verify_email(email, user, code, template_name: nil) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/mailers/command_tower/email_verification_mailer.rb', line 5 def verify_email(email, user, code, template_name: nil) subject = "Welcome to #{CommandTower.config.app.communication_name }" @user = user @code = code template = template_name || "verify_email" mail(to: email, subject:, template_name: template) end |