If you call actionmailer from a rake task, you can’t use activejob, as the thread pool is killed once the rake tasks finishes. so everything is real time, which is not a problem at all, given it’s a rake task…

https://guides.rubyonrails.org/action_mailer_basics.html#calling-the-mailer