mirror of https://github.com/docusealco/docuseal
				
				
				
			
			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.
		
		
		
		
		
			
		
			
				
					
					
						
							17 lines
						
					
					
						
							500 B
						
					
					
				
			
		
		
	
	
							17 lines
						
					
					
						
							500 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)
 | |
| 
 | |
|     assign_message_metadata('user_invitation', @user)
 | |
| 
 | |
|     I18n.with_locale(@current_account.locale) do
 | |
|       mail(to: @user.friendly_name,
 | |
|            subject: I18n.t('you_are_invited_to_product_name', product_name: Docuseal.product_name))
 | |
|     end
 | |
|   end
 | |
| end
 |