PDA

View Full Version : multiple recipients from php form


felix822
08-04-2005, 06:18 PM
Not sure if it's been covered, but I have a PHP form that I need to e-mail 2 recipients. Does anyone know how to do this? Thanks in advance.

anshul
08-04-2005, 07:09 PM
Very simple; use To, Cc, Bcc fields.
Actaully just separating e-mails ( recepients ) by ; or , will work.

See mail() in PHP Manual.

http://scholarship.mediasworks.com/

felix822
08-04-2005, 07:13 PM
Very simple; use To, Cc, Bcc fields.
Actaully just separating e-mails ( recepients ) by ; or , will work.

See mail() in PHP Manual.

http://scholarship.mediasworks.com/

I've tried the semicolons and it didn't work. Nothing went to either recipient.

felix822
08-04-2005, 07:14 PM
Dumb question, but where is the PHP Manual?

Kid Charming
08-04-2005, 07:17 PM
You can view/dl it at php.net (http://php.net).

felix822
08-04-2005, 07:30 PM
Thanks. I'm looking through it right now. Hopefully I'll find the answer.

felix822
08-04-2005, 08:02 PM
In case anyone wants to know, I was able to make it work:

$to = "user1@domain.com, user2@domain.com";

Thanks for the help people.