rashidul — 2010-10-01T08:58:32-04:00 — #1
My friends, hope U all r good. I want to implement something as follows....
My site is about writer and buyer. Buyer will post articles with all the additional requirements. Writer will see and can add to his queue and write.
What I want to do now is :: when buyer submit articles, an automated email will goes to the writer whose profile matches the requirements posted by buyer..
How can I send this? If I want to implement cron jobs, then may be there will be a repeatition,,, another way, if I send the mails to matched writer when buyer posted articles, then it will take so much time to view the next page after post.
If anything not clear plz reply.
guido2004 — 2010-10-01T09:01:15-04:00 — #2
Why would there be repititions?
rashidul — 2010-10-01T09:07:12-04:00 — #3
I understand. I can implement this using cron jobs.
I thought that if I sent email for the articles that not yet taken.. if after 30 second if send again then there will be repetition.
Now I got the solution. If I implement as follows it will work:::
I will sent email for those article that posted within last 30 secs and that not yet taken.
thanks for ur quick help.
guido2004 — 2010-10-01T09:14:47-04:00 — #4
rashidul, or add a mailstatus field to your database. When you send the emails, change the status. Only send emails if the status is 'emails not sent yet' or something like that
rashidul — 2010-10-01T09:15:56-04:00 — #5
Great thanks. It's better