amazon web services - Laravel email queue infinite processing? -


i using laravel 5.4 aws sqs. have tested jobs doing sort of stuff , works fine, when try queue email get:

[2017-08-18 09:21:48] processing: app\mail\welcomeemail [2017-08-18 09:21:48] processing: app\mail\welcomeemail [2017-08-18 09:21:48] processing: app\mail\welcomeemail [2017-08-18 09:21:48] processing: app\mail\welcomeemail [2017-08-18 09:21:49] processing: app\mail\welcomeemail [2017-08-18 09:21:49] processing: app\mail\welcomeemail [2017-08-18 09:21:49] processing: app\mail\welcomeemail [2017-08-18 09:21:49] processing: app\mail\welcomeemail [2017-08-18 09:21:49] processing: app\mail\welcomeemail [2017-08-18 09:21:49] processing: app\mail\welcomeemail [2017-08-18 09:21:49] processing: app\mail\welcomeemail [2017-08-18 09:21:49] processing: app\mail\welcomeemail [2017-08-18 09:21:49] processing: app\mail\welcomeemail [2017-08-18 09:21:49] processing: app\mail\welcomeemail [2017-08-18 09:21:49] processing: app\mail\welcomeemail [2017-08-18 09:21:50] processing: app\mail\welcomeemail [2017-08-18 09:21:50] processing: app\mail\welcomeemail [2017-08-18 09:21:50] processing: app\mail\welcomeemail [2017-08-18 09:21:50] processing: app\mail\welcomeemail [2017-08-18 09:21:50] processing: app\mail\welcomeemail [2017-08-18 09:21:50] processing: app\mail\welcomeemail 

and guess goes however, if send without queue works absolutely fine.

here's code it's executed,

protected function create(array $data) {     mail::to($data['email'])         ->queue(new welcomeemail());     return user::create([         'name' => $data['name'],         'email' => $data['email'],         'password' => bcrypt($data['password']),     ]); } 

welcomeemail:

{     return $this->from('support@dev.com')                 ->view('emails.welcomeemail')                 ->attach('pdf/tc.pdf',[                     'as' => 'tc.pdf',                     'mime' => 'application/pdf',                     ]); } 

welcomeemail blade

<body>     <h4>hello</h4>     <img src="{{ $message->embed(public_path('images/logo.png')) }}" ) }}">   <b>we search high , low across city bring information content possible, personalised interests!</b>  <p>we'll bring latest live restaurant deals, sports events, travel info, show times, , much more. if there's need know or exciting going on, you'll first know it.</p>  <p>log in account , start customising alerts today!</p>  <a class="btn btn-success" href="http://localhost:8000/profile">view profile!</a>  </body> 


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -