View Single Post
  #1  
Old 17th September 2012, 12:30
ayok ayok is offline
Junior Member
 
Join Date: Sep 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cron job sends duplicate e-mails

Hi,
I am a PHP programmer but not really good with linux programming. So please be patient with me. I am busy now with a site which needs to work with the cron job. The admin panel of the server is ISPConfig 3.0.4.6. So that's why I am trying to find help here.

The cron job is working well, it executes every task with just this command:
Code:
* * * * * http://www.site.com/emails.php
However, when I tried to setup cron job to execute a script which sends emails, it sends me duplicate emails. So instead of receiving one emails I could receive 2 - 3 emails which is unexpected.

I have report this with the system administrator, but he ignores me, instead he accuse me that the mistake lays on the script. I have assured him that there is nothing wrong with the script because I've tested it with simple PHP mail(). Now the project stucks with this problem. And he, of course, is very busy with other things.

So, could someone please help me here? Thank you in advanced.

Greetings,
ayok
Reply With Quote
Sponsored Links