Hi, I'm pretty new to php, but today I have been trying to create a very simple newsletter-script. So far I have managed to create the subscription/unsubscription feature, which adds/removes the email to/from a database. I am now stuck on trying to code sending out the newsletter to the recipents. This is what I have got so far: [code]<?php require_once("db.php"); ?> <?php if ($_POST['submit'] == TRUE) { $subject = mysql_real_escape_string($_POST['Subject']); $message = mysql_real_escape_string($_POST['Message']); $query = "SELECT * FROM newsletter"; $result = mysql_query($query); while($row = mysql_fetch_array($result)){ $recipents = $row['Email']. "; "; } mail('$recipents', '$subject', '$message'); echo "Mail sent!"; } else { ?> <h3>Send Newsletter</h3> <form method="post" action="<?php echo $PHP_SELF ?>"> Subject: <input name="Subject" size="44" maxlength="255"> <br> Message: <textarea name="Message" rows="20" cols="40"></textarea> <br> <input type="submit" name="submit" value="Send Newsletter"> </form> <? } ?>[/code] Basically I am trying to create an array of the emails from the database, which I have done (if I print $recipents it shows the list of emails) - and then send out one message to all the recipents. When I click on the submit-button, no mail has been sent, but the line "Mail sent!" is still printed. I am not sure if this could be a simple syntax error or a problem with my array or whatever. But the mail function is working on the server (I'm using it in the sub/unsub. features too). Maybe I am just too tired ::), but can anyone see the problem?