3 ms·
Last month, I spammed my users with emails. When the cron job in my application failed, it retried again and again and flooded my entire user base with emails.
by QueensGambit 7y ago
Last month, I spammed my users with emails. When the cron job in my application failed, it retried again and again and flooded my entire user base with emails. So, I wrote this API to avoid spamming. It ensures that my users won't get more than 1 email per day, irrespective of how my application behaves.
What do you think? Feedback please?
- dubcanada 7y agoWhat backend do you use? What is your spam policy? Not really sure I fully understand the API.
- QueensGambit 7y agoI use SendGrid and Google Cloud (GAE) to send email. This API is a layer on top these 2 email services. This layer avoids unintentionally flooding your users with email. e.g: If your cron job uses SendGrid to send email, and you run that cron job 2 times by mistake, SendGrid will send 2 emails for each user. Instead, if your cron job uses my API to send email and you run that cron job 2 times, my API will send only 1 email for each user per day. Does that make sense?