Tony.. you may want to brush up on strings in the PHP manual. http://www.php.net/manual/en/language.types.string.php
The .= operator *appends* to an *existing* string.. so when you are defining a string for the first time, you must use just the plain equal sign =. After that point, you can use the .= to append to it. $a .= 'hi'; is equivalent to $a = $a . 'hi'; similar to how $a += 10; is equivalent to $a = $a + 10; So, in this case, change your header definition around a bit: >$mailheaders = "From: My Website\n"; >$mailheaders .= "Cc: $other_email\n"; >$mailheaders .= "Reply-to: $sender_email\n"; Also, you should probably change the "Reply to" header to "Reply-to" (as I've done here). -Mike At 10:31 PM 11/18/2001 -0600, you wrote: >Daniel, >I tried your suggestion (see below) but the letter gets bounced back like >this: > > >[EMAIL PROTECTED],linda >..................... > >Here is 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], [EMAIL PROTECTED]"; >$subject="Web Site Feedback"; >$mailheaders .= "Cc: $other_email\n"; >$mailheaders="From: My Website"; >$mailheaders.="Reply to: $sender_email\n\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"; ?> >................................... > >----- Original Message ----- >From: Daniel Parsons <[EMAIL PROTECTED]> >To: Anthony Ritter <[EMAIL PROTECTED]>; ><[EMAIL PROTECTED]> >Sent: Sunday, November 18, 2001 8:55 PM >Subject: RE: [PHP-WIN] Adding a cc to a PHP mail script... > > > > 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. > > > > >-- >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] -=- Mike Flynn - Burlington, VT -=- [EMAIL PROTECTED] http://www.mikeflynn.net/ * Give blood * ...maintaining lawns, watching televised sports, birthing children, listening to Top 40 music, and collecting stuffed animals... -- 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]