If you want to add additional email addresses to the 'To' list, use a comma seperated list: e.g. $to = "[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]";
if you want to cc the email then add it to your headers: e.g. $mailheaders .= "Cc: [EMAIL PROTECTED]\r\n"; HTH, D. > -----Original Message----- > From: Anthony Ritter [mailto:[EMAIL PROTECTED]] > Sent: Monday, 19 November 2001 2:48 p.m. > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Adding a cc to a PHP mail script... > > > Is there any way to add an *additional* e-mail address - a cc > - besides the > one that is already in the $to variable below using the following PHP > script? > > Thanking all in advance. > Tony Ritter > .......................................... > > > <? > $msg="This e-mail is being sent from www site\n"; > $msg.="Sender's name: \t$sender_name\n"; > $msg.="Sender's e-mail:\t$sender_email\n"; > $msg.="Message:\t$message\n\n"; > $to="[EMAIL PROTECTED]"; > $subject="Website Feedback"; > $mailheaders="From: My website<> \n"; > $mailheaders.="Reply to: $sender_email\n\n"; > mail($to,$subject,$msg,$mailheaders); > ?> > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]