Try to send a mass mail.
It looks fine, but you don't know till you try
That's really weird... should all be working fine now, it seems for some reason it couldn't create the $options array in the while loop, but had to have it defined beforehand.
Thanks for all the help!
The same error is on a couple of other places too, but the script seem to work fine anyway but I still get annoyed by seeing it. Is there any special PHP-settings on the server that could cause this to happen?