I am trying to send email using background action. I tried hard but did not get much success.
Can anybody please help me ?
i have tried this link :
But i dont know where to put this code
[size="4"][size="6"][b]Create Delayed Job
You can run job at specific time
$time = 1332067214; Yii::$app->resque->enqueueJobAt($time, 'queue_name', 'ClassWorker', $args = );
or run job after n second
$in = 3600; $args = ['id' => $user->id]; Yii::$app->resque->enqueueIn($in, 'email', 'ClassWorker', $args);[/b][/size][/size]
THanks in advance !!