You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docuseal/app/mailers/user_mailer.rb

13 lines
335 B

# frozen_string_literal: true
class UserMailer < ApplicationMailer
def invitation_email(user, invited_by: nil)
@current_account = invited_by&.account || user.account
@user = user
@token = @user.send(:set_reset_password_token)
mail(to: @user.friendly_name,
subject: 'You are invited to DocuSeal')
end
end