> there is an example of a simple mail function on page 520 in the
> book beginning php4
> the problem is how do i send to multiple recipients? everytime i
> try to add more email addresses they will come out in the main
> body of mail and only the first email will get the mail
>
> question: how do i modify the code so that i can send to everyone
> (through bcc), without emails appearing in the main body?
Have you tried looking through the list archives or the php documentation?
http://www.php.net/function.mail
shows a very detailed example of sending mail and setting the headers.
good luck,
nik