title: Laravel: Why user never received any mail?
body: <p>I trying send an mail to user to remind them to used the modules. So, in db table i have created <code>last_used_module</code> column to trace the value which null or didn't used for 7 days. SO, anyone can help me?</p>
  
  <pre><code>foreach($ModuleAutoMail as $module) {
      // echo $module -&gt;last_used_module;
      if($mail-&gt;condition_id=='3'){                        
          if(is_null($module-&gt;last_used_module)){ 
              $ableToSendMail = true;
  
              $last_used_module = Carbon::parse($module-&gt;last_used_module);
              $DeferenceInDays = Carbon::parse(   Carbon::now())-&gt;diffInDays($last_used_module);
  
              if($DeferenceInDays &gt; 7){
                  $ableToSendMail = true;
  
                  if ((EmailSave::where('email_id',$email_id)-&gt;where('user_id',$user_id)-&gt;count()&lt; 1)){  
                      $ableToSendMail = true;
                  }
  
                  if ($ableToSendMail) {
                      $mails = new EmailSave;
                      $mails-&gt;user_id = $user-&gt;id;
                      $mails-&gt;email_id =$mail-&gt;id;
                      Mail::to($user-&gt;email)-&gt;send(new Automail($mail));
                      $mails-&gt;save();
                  }
              }     
          }
      } 
  } 
  </code></pre>