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.
		
		
		
		
		
			
		
			
				
					
					
						
							15 lines
						
					
					
						
							390 B
						
					
					
				
			
		
		
	
	
							15 lines
						
					
					
						
							390 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)
 | |
| 
 | |
|     mail(to: @user.friendly_name,
 | |
|          subject: 'You are invited to DocuSeal')
 | |
|   end
 | |
| end
 |