I am using Sorcery Gem
to Authenticate user in my Rails application. Everything is working fine. When user register then I am able to send user activation email. However sending email is taking long time so I was thinking to delay the email or send email in backgroud using Sidekiq
. I read Sorcery documentation but couldn't find the way to delay the email using Sidekiq.
Please guide me how to delay the email send by Sorcery gem using Sidekiq.
I found the solution. It's quite easy. We just need to add following line in sorcery.rb
file and all sorcery mail will be handled by ActiveJob
user.email_delivery_method = :deliver_later