Answer the question
In order to leave comments, you need to log in
How to set up email marketing in Laravel?
Hello. I am using Laravel 6.
Task:
I have 10000 users. Of this number of users, 1000 are eligible to receive a notification by mail.
The script should run once a day.
How to create this script correctly so that it does not load the system and the database?
I need to send notifications so that I don't get banned for spam.
Initially, I send a query to the database, which determines the users that match the condition. As a result, I have addresses to which I need to send letters.
How correct is it to pull 1000 users at once, and then send notifications to them in a loop?
It seems to me that you can somehow gradually receive them and carry out these actions with a delay.
Thank you!
Answer the question
In order to leave comments, you need to log in
1. If you do not send mailings through services like Mailchimp, Sparkpost etc, but from a mailbox a la [email protected], then you will be banned with a 99% probability even for 10 letters.
2. Some of the mentioned services also have a limit like "N letters per minute" or "N addresses in a copy".
3. The restriction from point 2 is solved by the rate limiting mechanism (available in Laravel from 6.x) or by searching for a service with higher limits or raising the limits for money / through support.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question