When I use the PHPMailer library, my script runs fine from CLI, but when I run it using cron, multiple emails get sent out. I have a list of addresses to send to, then for every next mail recipient, excluding the first one, it sends duplicates.
Example:
I send a message to 3 mail recipients every ten minutes
1st recipient received same email once.
2nd recipient received same email twice.
3rd recipient received same email three times.
4th recip. four times... etc..
The Code:
http://pastebin.com/XjtgEN8u
The crontab :
0,10,20,30,40,50 * * * * /etc/webmin/cluster-cron/cron.pl 1353486136-28420