note 46271 rejected from function.mail by nlopess

From: Date: Tue, 05 Oct 2004 12:11:14 +0000
Subject: note 46271 rejected from function.mail by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-78021@lists.php.net to get a copy of this message
Note Submitter: jochem at twisted dot nl ---- hello, i have a question. i have a newsletter which i want to send to my customers, by mail. the mail adresses are defined in a mySQL database. i use the following script to load the correct settings: <? $sql = "SELECT * FROM email_db"; $result = mysql_query($sql) or die(mysql_error()); $row = mysql_fetch_array($result) or die(mysql_error()); $ontvanger = $row["email"]; $onderwerp = "Laurentius Nieuwsbrief van " . $dd . "-" . $mm . "-" . $jjjj; $headers .= "From: " . $email . "\n"; $headers .= "X-Mailer: PHP 4.x\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-Type: text/html; charset=us-ascii\n"; $inhoud = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\>" <html> <head> ...further code... ?> the problem is that when i submit this form, all of my customers receive the same newsletter twice instead of once. Does anybody know the cause of this? I've checked the PHP version; checked on wrong quotes... nothing kind regards, Jochem

« previous php.notes (#78021) next »