RoR ActionMailer: Page reload slow when sending mail
I am new to RoR, have a registration page, with an "email" field. When the user registers a mail is sent successfully to h开发者_如何转开发is mail address but the problem is that it takes a while -about 6 - 10 seconds during which period the page is still reloading. Is this normal, is there an optimization option? any help would be appreciated. I'm Using ActionMailer Bundled with RoR.
It's perfectly normal, the user has to wait for the mail to be sent because you include directly in the action.
One dedicated solution is to make mail sending asynchronous with tools such as Delayed Job.
See screencast: http://railscasts.com/episodes/171-delayed-job
精彩评论