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

Popular posts from this blog

json - Zend error Connection -

javascript - Trigger mouseenter when an animated element touches mouse -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -