"Bcc: [EMAIL PROTECTED],[EMAIL PROTECTED]" Or "Cc: [EMAIL PROTECTED],[EMAIL PROTECTED]" Or "To: [EMAIL PROTECTED],[EMAIL PROTECTED]"
Put a comma between email addresses. -Jason Garber IonZoft.com At 01:00 PM 11/19/2001 -0600, Anthony Ritter wrote: >Hi, >Thanks to all that helped me out yesterday. > >I'm using PHP with Apache on a MS Windows 98 box. > >I would like to include a cc to another e-mail adresss when sending an >e-mail. > >In addition I would like to *receive* and *also have the cc person receive* >this e-mail as well. > >Right now, I am receiving an e-mail but not the other person using the >following script. > >Using the variable and concatating the string to read: > >$to.="[EMAIL PROTECTED]"; > >does not seem to work. > >How do I go about configuring this script so that both of us - the *to* >person and the *cc* person can recieve the same e-mail? > >The script: >................................ > > ><? >$msg="Email sent from WWW site"; >$msg.="Sender's name:\t$sender_name\n"; >$msg.="Sender's email address:\t$sender_email\n"; >$msg.="Message:\t$message\n\n"; >$to="[EMAIL PROTECTED]"; >$other_email = "[EMAIL PROTECTED]"; >$subject="Web Site Feedback"; >$mailheaders="From: My Website<>\n"; >$mailheaders.="Cc: $other_email\n"; >$mailheaders.="Reply to: $sender_email\n"; >mail($to,$subject,$msg,$mailheaders); >?> >.......................... > >In the above script: >I received an e-mail but *not* the cc person - Linda. > >However, when I hit "reply" to that e-mail, both: > >[EMAIL PROTECTED] >and >[EMAIL PROTECTED] > >showed up with Linda's as the cc. > >O.K. That's half the riddle. > >I'm trying to have both myself *and Linda* receive >an e-mail...not just me. > >So I tried the following script by concatating the string >$to >................................... > > ><? >$msg="Email sent from WWW site"; >$msg.="Sender's name:\t$sender_name\n"; >$msg.="Sender's email address:\t$sender_email\n"; >$msg.="Message:\t$message\n\n"; >mailto:$to="[EMAIL PROTECTED]"; >$to.="[EMAIL PROTECTED]"; >$other_email = "[EMAIL PROTECTED]"; >$subject="Web Site Feedback"; >$mailheaders="From: My Website<>\n"; >$mailheaders.="Cc: $other_email\n"; >$mailheaders.="Reply to: $sender_email\n"; >mail($to,$subject,$msg,$mailheaders); >?> > >Simple Feedback Form > >The following email has been sent: > > > >Your Name: ><? echo "$sender_name"; ?> > >Your email address: ><? echo "$sender_email"; ?> > >Message: ><? echo "$message"; ?> >................................................. > >And after using *that* script neither of us receive an e-mail except that it >gets bounced back as: > >[EMAIL PROTECTED] > >So, it seems that somewhere the string in > >$to > >is getting fouled up. > >Any ideas? > >Many thanks for your time and help. > >Kindest regards, >Tony Ritter > > > > > > > > >-- >PHP General 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]