title: Delay between email using queue in laravel
body: <p>The situation is I upload .csv that contains 50 emails, for example. How I can delay between 2 emails send because the mailtrap free package just allowed sending rate limit per 10 seconds just 2 emails. So I need to delay within 10 second. This what I has tried, but the email still send in batch.</p>
  
  <pre><code>    for ($i = 0; $i &lt; $count; $i++) {
  
          $participant = new Participant();
          $participant-&gt;p_name = $participantArray[0][$i]['name'];
          $participant-&gt;p_email = $participantArray[0][$i]['email'];
          $participant-&gt;p_address = $participantArray[0][$i]['address'];
          $participant-&gt;p_postcode = $participantArray[0][$i]['postcode'];
          $participant-&gt;p_city = $participantArray[0][$i]['city'];
          $participant-&gt;p_state = $participantArray[0][$i]['state'];
          $participant-&gt;p_contact = $participantArray[0][$i]['contactno'];
          $confirmation_code = str_random(30);
          $participant-&gt;confirmation_code = $confirmation_code;
          $participant-&gt;save();
          $participant-&gt;campaign()-&gt;attach($request-&gt;campaign_id);
  
          $details = [
              'email' =&gt; $participantArray[0][$i]['email'],
              'confirmation_code' =&gt; $confirmation_code
          ];
  
          $emailJob = (new SendEmail($details))-&gt;delay(Carbon::now()-&gt;addSeconds(10));
          dispatch($emailJob);
      }
  </code></pre>