diff --git a/app/controllers/admin/email_controller.rb b/app/controllers/admin/email_controller.rb index 7a7a4260b90..4867fc9f2b3 100644 --- a/app/controllers/admin/email_controller.rb +++ b/app/controllers/admin/email_controller.rb @@ -11,7 +11,7 @@ class Admin::EmailController < Admin::AdminController def test params.require(:email_address) - Jobs.enqueue(:test_email, to_address: params[:email_address]) + Jobs::TestEmail.new.execute(to_address: params[:email_address]) render nothing: true end