Skip to content
Advertisement

Laravel : email send multiples times to one user

I want send email to many users in one time but in this case the mail is sending multiple times to one user it self.

Try to email each person one time only(not spam the users) Its didnt work with this method anyone can help n this thing again.

JavaScript

Advertisement

Answer

Because you are using nested foreach loop that is why you are facing this issue. If you want to send each template to each user then you can simply swap your loops like:

JavaScript

Hope this will help!

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement