Saturday, 15 February 2014

email - Should I call deliver method when sending mail using rails? -



email - Should I call deliver method when sending mail using rails? -

in rails guide, see way deliver email calling this:

usermailer.welcome(@user).deliver

but in our codebase, see code using sidekiq:

usermailer.delay.welcome(@user)

and works. wondering, should phone call deliver create action happen or sidekiq magic here?

as can see in sidekiq's sources (click here) calls deliver you. thats why don't need phone call when delay email.

ruby-on-rails email sidekiq

No comments:

Post a Comment