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?
<?php
if (!$message)
{
?>
<form>
<textarea name=addresses>[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]</textarea>
<textarea name=message>hi everyone,
how are you?</textarea>
<input type=submit>
</form>
<?php
}else{
for i = 1 to end of $addresses
{
mail($addresses[i], "My Subject", $message);
}
{
#http://www.php.net/manual/en/function.mail.php
?>
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php