On Mon, Jul 11, 2005 at 11:20:05AM +0100, Ross wrote: > But I have having trouble assiging them to the variable $recipients. Really > what i want is to convert > > $email_addresses[0] = name0@xxxxxxxxxx > $email_addresses[1] = name1@xxxxxxxxxx > $email_addresses[2] = name2@xxxxxxxxxx > > into > > $recipients= "name0@xxxxxxxxxx, name1@xxxxxxxxxx, name2@xxxxxxxxxx"; You want the implode() function using a line like this: $recipients = implode(', ', $email_addresses); This will create a string of all the values in each element of the $email_addresses array, separated by a comma and a space (of course you can change this to anything you want). You can find more information about the function here: http://www.php.net/implode > (ii) does the space between addresses matter? I would rather have it as my > user could see the recipeints more clearly. As far as I'm aware, any standards compliant mail server will just ignore the extra whitespace so you are free to insert spaces if you so desire. Paul -- Rogue Tory http://www.roguetory.org.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php