lundi 2 novembre 2015

Laravel queue (iron.io) keeps sending same email over and over

I am using the Iron.io API with Laravel 5.1. It sends out emails fine. However, it seems to be sending the same message over and over again. Any idea why this might happen?

The code I am using is:

Mail::queue([], [], function ($message) use ($template, $order, $filename) {
    $message
    ->to($order->email)
    ->subject($template->subject)
    ->setBody(DbView::make($template)->with($order->toArray())->render(), 'text/html');

    $message->attach(storage_path('exports/'.$filename));
});



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire