docbrown/spec/mailers/previews/verification_mailer_preview.rb
Jacob Herrington a4f71c22b6
[deploy] Add automated email ownership emails (#7556)
* Add automated email ownership emails

This is task Michael does manually a lot. There are a lot of cases where
we need to validate that an individual has access to the email address
associated with their DEV account. This automates a singificant portion
of that, and hopefully we can use it in a lot of places.
2020-05-06 12:07:54 -05:00

7 lines
296 B
Ruby

# Preview all emails at http://localhost:3000/rails/mailers/verification_mailer
class VerificationMailerPreview < ActionMailer::Preview
def account_ownership_verification_email
params = { user_id: User.last.id }
VerificationMailer.account_ownership_verification_email(params)
end
end