ruby on rails - Send mail at particular time in action mailer using delayed job -
def time_confirmation(user) @user = user if(@time == (time.now())) mail(:to => user.email) end end
is right? mail has sent @ current time.
on controller like:
def create @user = user.create(user_params) delayedemailjob.new(@user.email).enqueue(wait: 30.minutes) redirect_to root_path end
Comments
Post a Comment