Answer the question
In order to leave comments, you need to log in
How to make sidekiq_mailer's attempts successful?
I'm trying to use sidekiq_mailer to send emails in the background...
Everything gets stuck on sidekiq's attempt to complete the task
, it says ArgumentError: wrong number of arguments (0 for 2..3) although it itself shows all the arguments: "RemindMailer", "test", []
sidekiq-4.1.0
sidekiq_mailer-0.0.8
app/controllers/service_controller.rb:
class ServiceController < ApplicationController
def home
RemindMailer.test().deliver
end
end
class RemindMailer < ApplicationMailer
include Sidekiq::Mailer
def test()
mail(to: "[email protected]", subject: "XXX", body: "XXX", content_type: "text/html")
end
end
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question