Hi
I have recently built a newsletter that enables the administrator to select which members/users should receive the newletter - depending on particular criteria.
I have tested this on my local Apache server and it works without a problem.
However, after I have transferred over to our host: datagate, The script will not function at all.
I have tested the code with the usual sql echo line - to check that the email addresses are being pulled from the relevant table. Again, on my local server they are. But on the live server they are not...
I am using the Windows Platform (Windows Vista), but our live host uses Unix.
I am using MySQL version 5.1.33
Apache version: 2.2.11
PHP version: 5.2.9-2
I have noticed that when I echo the email values on my localhost, the values returned have no spaces seperating them i.e the returned values look like:
'user1@mysite.comuser2@mysite.comuser3@mysite.com' etc etc
This may be posing problems. I'm not sure - but can't think of what else the problem could be...
I've attached the script below.
Sorry for the long lines of code, but thought it best to provide as much of the data as might be useful....
On the live server, the output on screen is "The Newsletter Has Been Sent". However, as previosuly stated: I've echoed the previous sql call (echo $row['email']

, and no lines are being returned....
Any ideas what the problem might be??
Thanks