John Taylor-Johnston <mailto:[EMAIL PROTECTED]>
on Monday, August 11, 2003 3:08 PM said:
> I understand the principle of mail. What I want to do is use a
> <textarea> as a mailing list, something like this. How do I loop it?
I would...
$addresses = explode("\n",$_GET['addresses']);
foreach($addresses as $address)
{
mail($address,...);
}
That is going to take data like:
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
and split it into an array ($addresses) using the endline character (\n)
as the delimiter.
HTH!
Chris.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php