Flash mail form, sends two copies!

i have a flash form, i want that flash form to send one copy to the customer and one to the store!

here’s the php scrip i have so far

<?php
$ToEmail = "mansouros@hotmail.com";

$ToSubject = "a computer suscriber";

$company = "roya";

$EmailBody = "Sent By: Roya
Senders Name: $rname
Email Address: $rmail
Phone Number: $rfone
";

$EmailFooter = "Computer Data:
$allData
$REMOTE_ADR http://www.mansours.net
";

$Message = $EmailBody.$EmailFooter;

mail($ToEmail. "<".$ToEmail.">",$ToSubject, $Message, "From: ".roya." <".$company.">");
mail($smail. "<".$smail.">",$ToSubject, $Message, "From: ".roya." <".$company.">");

?>

what should i add/edit/remove?
btw - $smail, is an input box variable inside withing the flash(customer’s email).

please help

<?php
$ToEmail = "mansouros@hotmail.com";

$ToSubject = "a computer suscriber";

$company = "roya@blah.com";

$EmailBody = "Sent By: Roya
Senders Name: $rname
Email Address: $rmail
Phone Number: $rfone
";

$EmailFooter = "Computer Data:
$allData
$REMOTE_ADR http://www.mansours.net
";

$Message = $EmailBody.$EmailFooter;

$headers .= "To: $ToEmail <$ToEmail>
";
$headers .= "From: roya <$company>
";
$headers .= "Cc: $smail
";

mail($ToEmail, $ToSubject, $Message, $headers);

?>

You can also just put more than one email address in the To field, or Bcc the additional recipients. For more information, check out the mail function manual at Zend.com

thanx for your help
greatly appreciate it :slight_smile:

is there a way to prevent the CC address from displaying on the email?

Besides using Bcc: ?

ummm…i don’t even know what bcc is to begin with,

$headers .= “Cc: $smail
”;

this line, emails a copy i’m guessing…how can i not show this inside the mail!
i dont want the person to know he sent me a copy!

ummm…i don’t even know what bcc is to begin with,

$headers .= “Cc: $smail
”;

this line, emails a copy i’m guessing…how can i not show this inside the mail!
i dont want the person to know he sent me a copy!

thanx JustJeff

works like a bull!