Chakreshwar Sharma
Chakreshwar Sharma

Reputation: 2610

Send Mails asynchronously in rails 4.2

I am sending a mail by using deliver_later method of Action Mailer but it is sending the mail at same time , I get the response from the controller when the complete action has done, My question is that is there any way to send the mail asynchronously without any gem

Upvotes: 0

Views: 80

Answers (1)

Brozorec
Brozorec

Reputation: 1183

You need to enqueue the jobs of sending emails. There is a Rails built-in framework called Active Jobs. For more info here: http://guides.rubyonrails.org/active_job_basics.html

Upvotes: 2

Related Questions