<b>send automated mail to the user when posted article</b>

Hi,

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.

THanks,
Rashed

Why would there be repititions?

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.

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 :slight_smile:

Great thanks. It’s better