Jump to content

advice on sending lots of notification emails.


Anti-Moronic

Recommended Posts

Just wondering, I am going to be sending lots of notification emails and want to know what you think is the best way to approach this.

 

Let's say I have 200 people subscribed to a comments section. I need each one of those 200 people notified when a new comment is posted.

 

Or maybe 200 people are following a profile and each time they make a post, those 200 people must be notified.

 

What is the best way to do this and do I require a ton of server resources?

 

I was thinking to send out the notifications by trigger. So when the person posts or a new comment is posted, then it would loop through. But then I realized, this would be unnecessary. So should I use a cron job or otherwise?

 

Thanks.

Link to comment
Share on other sites

I know cronjob isn't instant. I'd have one set every 6 hours or something to send unsent notifications.

 

My next problem though is sending over 500 emails in one go. I'm still on shared hosting. Does PEAR MAIL offer throttling so I can limit the amount of emails send an hour?

Link to comment
Share on other sites

create a queue file or queue database..and every hour send 100 emails or w.e.

 

The whole idea of sending emails to ever commenter is pointless in my opinion, and will actually deter users from posting comments, because nobody likes a million emails from a website.. I know I don't.

Link to comment
Share on other sites

Hi, sorry I should clarify. I wouldn't be sending emails to people who didn't request them. This is for people who 'subscribe' to the comments or a user who posts articles.

 

Do you have any links which can explain how I set up a queue database on lamp?

 

Thanks for your help. Appreciate it.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.