Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Mail Queue

Hey there...

I want to make a mail queue for my system in php.

Users choose what they want to be sent to them and fill a form on when in week they want to receive their weekly digest.(It has both Day of week and Hour of day and also Timezone Selection)

There is no problem for the Database, but I don't know how to make the queue and do everything on time(sending emails).

For many reasons I don't want to use MailChimp-like tools.

I would be more than happy if you help.

Thanks

P.S: I believe after a month or two, there would be more than 1000 mails to send each day.

5 Answers

> For many reasons I don't want to use MailChimp-like tools.

If you don't you'll end having spending a lot of time working on email delivery issues.

Ok...

Now I'm not that strict.

But I still need the code for another reason(Semi-related work)

I believe I've found something: "cron", but I couldn't understand as much as I need.

@ James Barnett :

I couldn't understand how to solve my problem with MailChimp.

here it is:

I have N Books each containing M1,M2,...Mn pages. I divide them into different sections and store them in DB(It's in HTML).

A user buys some of the books. maybe add 2 of them to his/her schedule and I send emails containing a new chapter of their books to them according to their schedule. In site there will be a button called "Send me new Chapter Right Now" and I'll send one for them.

I couldn't find what I want in MailChimp. How should I do it?

Guys...

I really need this... Any help?

maybe Randy Hoyt ?

Any thoughts?

I can't figure it out.