mercredi 30 novembre 2016

What's the best practice to send out bulk emails in Laravel 5.3?

I'm expecting about 200 - 400 emails to be sent every 2 - 3 weeks in one go. This is based on the event and the event being a project published on the website. So once it is published, an automatic email goes out to all the subscribers. I'm using Laravel 5.3 and the new notifications API.

So the code at the moment simply looks like this

$subscribers->each(function($subscriber) use($project) {
   $subscriber->notify(new ProjectPublished($project));
});

Would it make sense to implement ShouldQueue in this scenario?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire