I fill out the form (with the ability to use html) and it sends to emails from a db.
I tried using it for another site on another server and the script echos the emails it was sent to, but the emails never go through. I'm only posting this little snippet since it's where I believe the problem to be. If otherwise, I can post the entire script.
Code: Select all
while ($row = mysql_fetch_array($result)) {
set_time_limit(0);
$email = $row['email'];
mail("$email", stripslashes($_POST[subject]), stripslashes($_POST[message]), $headers);
echo "newsletter sent to: $email<br>";I know this can cause issues with magic_quotes (which I'm not that familiar with, I'm still a newb).
So here is how the php is configured on this server if any of this matters:
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
Thanks!