You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: notification_mailer.rb
    path of file: ./repos/brimir/app/mailers
    
    the code of the file until where you have to start completion: # Brimir is a helpdesk system to handle email support requests.
# Copyright (C) 2012-2015 Ivaldi https://ivaldi.nl/
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero Gener
    
  def new_account(user, template, tenant)
    if tenant.notify_user_when_account_is_created
      return unless template.is_active?
      @user, @template, @domain = user, template, tenant.domain

      mail(
        to: user.email,
        from: tenant.from,
        subject: I18n.t('new_account_subject')
      )
    end