<% module_namespacing do -%> class <%= class_name %>Mailer < ApplicationMailer

def otp_email(email, code)
  @code = code

  mail to: email,
       subject: 'Auth code',
       template_path: 'two_factor_device_authentication',
       template_name: 'otp_email'
  end

end <% end -%>