Hi,
I have tried to use the PHP Mail function to send an automatic response with order details. It works really well, except it sends a duplicate copy of each email and I can't figure out why. Here's a bit of code; any suggestions?
<?PHP //$to = $new_row["first_name"] . " " .
$to = $new_row["first_name"] . " " .
$new_row["last_name"] . " <" .
$new_row["email"] . ">";
$subject = " Order Confirmation";
$headers = "From: orders@here.com\r\n";
$headers .= "X-Sender: <orders@myfavoritetoys.com>\r\n";
$headers .= "X-Mailer: PHP\r\n";
$headers .= "Return-Path: <orders@myfavoritetoys.com>\r\n";
$out = "Thank you for shopping at MyFavoriteToys.com.\n";
mail($to, $subject, $out, $headers);