# Pleroma: A lightweight social networking server
# Copyright © 2017-2021 Pleroma Authors
Welcome to <%= instance_name %>
" ) instance_name = Config.get([:instance, :name]) {:ok, _job} = WelcomeEmail.send_email(user) ObanHelpers.perform_all() assert_email_sent( from: {instance_name, "welcome@pleroma.app"}, to: {user.name, user.email}, subject: "Hello, welcome to pleroma: #{instance_name}", html_body: "Welcome to #{instance_name}
" ) clear_config([:welcome, :email, :sender], {"Pleroma App", "welcome@pleroma.app"}) {:ok, _job} = WelcomeEmail.send_email(user) ObanHelpers.perform_all() assert_email_sent( from: {"Pleroma App", "welcome@pleroma.app"}, to: {user.name, user.email}, subject: "Hello, welcome to pleroma: #{instance_name}", html_body: "Welcome to #{instance_name}
" ) end end end