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);
?>

<HTML>
<HEAD<
<TITLE> Simple Feedback Form </TITLE>
</HEAD>
<BODY>
<H1> The following email has been sent: </H1>
<P><strong>Your Name:</strong><br>
<? echo "$sender_name"; ?>
<P><strong>Your email address:</strong><br>
<? echo "$sender_email"; ?>
<P><strong>Message: </strong> <br>
<? echo "$message"; ?>
</BODY>
</HTML>
...................................

----- 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]

Reply via email to