I've never had much opportunity to play with activejob, watching this made the entire process seem not that intimidating at all. Thanks so much for the screencast!
I think you got error, you do not actually delivering mail, you just render it inside perform method. I was watching video with that specific purpose, with question in my head - should you use deliver_now or deliver_later if you sending email with active job perform_later method.
Personally, I would probably use deliver_now. The background job is already asynchronous so there isn't much point to loop back to another job. However, if I were sending many emails within a background job, I would use deliver_later.
I've never had much opportunity to play with activejob, watching this made the entire process seem not that intimidating at all. Thanks so much for the screencast!
I think you got error, you do not actually delivering mail, you just render it inside perform method. I was watching video with that specific purpose, with question in my head - should you use deliver_now or deliver_later if you sending email with active job perform_later method.
Personally, I would probably use deliver_now. The background job is already asynchronous so there isn't much point to loop back to another job. However, if I were sending many emails within a background job, I would use deliver_later.