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

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

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