I used the script from this old thread:
on a vps I have running drupal on a lamp stack.
I'm fetching the email address to send to from my database and then loops through all fetched addresses and sends the mail.
It works brilliantly, but my problem is that it works a little too well, meaning that it sends the mail multiple times - somewhere between 5 and 10 times.
Anyone have an idea as to why it does this ?